input: Write a function to implement a simple bank account system in Python. The function should define a class called `BankAccount` that has methods to initialize the account with a name and balance, deposit money, withdraw money if sufficient funds are available, and check the account balance. The function should also include assertions to test the functionality of the 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
  
  assert BankAccount("Alice", 1000).get_balance() == 1000
  assert BankAccount("Bob", 500).withdraw(600) == False
  account = BankAccount("Charlie", 2000)
  account.deposit(500)
  assert account.get_balance() == 2500
  account.withdraw(2000)
  assert account.get_balance() == 500
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