input: Write a function to create a class representing a bank account in Python. The class should have methods to initialize the account with a name and initial balance, deposit money, withdraw money if sufficient balance exists, and retrieve the current balance.
  
  
  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 test cases
  account = BankAccount("John", 1000)
  assert account.get_balance() == 1000
  account.deposit(500)
  assert account.get_balance() == 1500
  assert account.withdraw(200) == True
  assert account.get_balance() == 1300
  assert account.withdraw(1400) == False
  assert account.get_balance() == 1300
  
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