input: Write a function to describe the task of creating a class to represent a bank account in Python. Provide the complete class definition with methods to initialize the account, perform deposits, withdrawals, and check the account balance. Include assert statements with test cases for each method.
  assert BankAccount("Alice", 1000).get_balance()==1000
  assert BankAccount("Bob", 500).deposit(200)==700
  assert BankAccount("Charlie", 300).withdraw(400)==False
  assert BankAccount("David", 2000).get_balance()==2000
  assert BankAccount("Eve", 0).deposit(1000).get_balance()==1000
output: class BankAccount:
      def __init__(self, owner, balance=0):
          self.owner = owner
          self.balance = balance
  
      def deposit(self, amount):
          self.balance += amount
          return self.balance
  
      def withdraw(self, amount):
          if amount > self.balance:
              return False
          self.balance -= amount
          return self.balance
  
      def get_balance(self):
          return self.balance