input: Write a function to create a bank account class in Python with methods to deposit, withdraw, and check the balance. Include an assertion 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("John", 1000).withdraw(500) == True
  assert BankAccount("John", 1000).withdraw(1500) == False
  assert BankAccount("John", 1000).get_balance() == 1000
  assert BankAccount("John", 1000).deposit(500).get_balance() == 1500
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 True
          else:
              return False
          
      def get_balance(self):
          return self.balance
  