input: Write a function to create a class that represents a bank account in Python, with methods to initialize the account with a name and balance, deposit money, withdraw money, and retrieve the current balance. Ensure the withdraw method checks if the balance is sufficient before allowing a withdrawal.
  
  
  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("John Doe", 1000).get_balance()==1000
  assert BankAccount("Jane Doe", 500).withdraw(2000)==False
  assert BankAccount("Jane Doe", 500).withdraw(200)==True
  assert BankAccount("John Doe", 1000).deposit(500).get_balance()==1500
output: class BankAccount:
      
      def __init__(self, name, balance):
          self.name = name
          self.balance = balance
          
      def deposit(self, amount):
          self.balance += amount
          return self
      
      def withdraw(self, amount):
          if self.balance >= amount:
              self.balance -= amount
              return True
          else:
              return False
          
      def get_balance(self):
          return self.balance