input: Write a function to create a class that represents a bank account in Python. The class should have methods for initializing the account with a name and balance, depositing money, withdrawing money if the balance is sufficient, and checking the current balance.
  
  
  def create_bank_account_class():
      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
      
      return BankAccount
  
  # Test cases
  BankAccount = create_bank_account_class()
  account = BankAccount("John Doe", 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(1500) == False
  assert account.get_balance() == 1300
  
output: def create_bank_account_class():
      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
      
      return BankAccount