input: Write a class called `BankAccount` to represent a bank account in Python that allows for deposits, withdrawals, and checking the balance. It should have an initializer that takes a name and an initial balance. The `deposit` method should add an amount to the balance, the `withdraw` method should subtract an amount from the balance if sufficient funds are available, otherwise it should return False, and the `get_balance` method should return 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
  
  
  
  # Test cases
  account = BankAccount('John Doe', 1000)
  assert account.get_balance() == 1000
  
  account.deposit(500)
  assert account.get_balance() == 1500
  
  assert account.withdraw(2000) == False
  assert account.get_balance() == 1500
  
  assert account.withdraw(500) == True
  assert account.get_balance() == 1000
  
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