input: Write a function to implement a `BankAccount` class in Python that allows for deposits, withdrawals, and checking the balance. The class should have an initial constructor that takes a `name` and an initial `balance`. The `deposit` method should add the given amount to the balance. The `withdraw` method should subtract the amount from the balance if sufficient funds are available, returning `True` if the withdrawal is successful and `False` otherwise. 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
  
  
  assert BankAccount("Alice", 100).deposit(50).get_balance() == 150
  assert BankAccount("Bob", 200).withdraw(50).get_balance() == 150
  assert BankAccount("Charlie", 50).withdraw(100) == False
  assert BankAccount("David", 300).deposit(200).get_balance() == 500
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 self
          else:
              return False
          
      def get_balance(self):
          return self.balance