input: Write a function to create a class in Python that represents a bank account. The class should have methods to initialize the account with a name and an initial balance, to deposit money, to withdraw money if sufficient balance is present, and to retrieve the current balance of the account.
  
  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", 1000).get_balance() == 1000
  assert BankAccount("Jane", 2000).withdraw(500) == True
  assert BankAccount("Dave", 500).withdraw(1000) == False
  assert BankAccount("Sam", 0).deposit(1000).get_balance() == 1000
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
  