input: Write a function to create a Python class representing a bank account. The class should include methods to initialize the account with a name and balance, deposit money, withdraw money if sufficient balance exists, and retrieve the current balance. Include at least five test cases using assert statements to validate the functionality.
  
  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).withdraw(200) == True
  assert BankAccount("Bob", 500).withdraw(600) == False
  assert BankAccount("Charlie", 200).deposit(300).get_balance() == 500
  assert BankAccount("David", 700).withdraw(700) == True
  assert BankAccount("Eve", 400).deposit(100).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 True
          else:
              return False
          
      def get_balance(self):
          return self.balance