input: Write a function to implement a class that represents a bank account in Python. The class should take in two parameters: the account owner's name and the initial balance. The class should also have methods to deposit money into the account, withdraw money from the account, and retrieve the current balance. Ensure that a withdrawal can only be made if the account has sufficient funds.
  class BankAccount:
      
      def __init__(self, name, balance):
          self.name = name
          self.balance = balance
          
      def deposit(self, amount):
          self.balance += amount
      
      def withdraw(self, amount):
          if self.balance >= amount:
              self.balance -= amount
              return True
          else:
              return False
          
      def get_balance(self):
          return self.balance
  
  assert BankAccount("Alice", 1000).get_balance() == 1000
  assert BankAccount("Bob", 500).withdraw(200) == True
  assert BankAccount("Charlie", 300).withdraw(400) == False
  account = BankAccount("David", 0)
  account.deposit(200)
  assert account.get_balance() == 200
output: class BankAccount:
      
      def __init__(self, name, balance):
          self.name = name
          self.balance = balance
          
      def deposit(self, amount):
          self.balance += amount
      
      def withdraw(self, amount):
          if self.balance >= amount:
              self.balance -= amount
              return True
          else:
              return False
          
      def get_balance(self):
          return self.balance