input: Write a function to create a class that represents a bank account in Python with methods for initializing the account, depositing funds, withdrawing funds, and checking the balance. Provide assert statements to test the functionality of the class.
  assert BankAccount("John", 1000).withdraw(500) == True
  assert BankAccount("John", 1000).withdraw(1500) == False
  assert BankAccount("John", 1000).deposit(500).get_balance() == 1500
  assert BankAccount("John", 1000).get_balance() == 1000
output: class BankAccount:
      def __init__(self, owner, balance):
          self.owner = owner
          self.balance = balance
  
      def deposit(self, amount):
          self.balance += amount
          return self
  
      def withdraw(self, amount):
          if amount > self.balance:
              return False
          self.balance -= amount
          return True
  
      def get_balance(self):
          return self.balance