input: Write a function to perform the following tasks: Implement a `BankAccount` class that can be initialized with a name and an initial balance. The class should include methods to deposit money, withdraw money, and check the current balance. Ensure that the withdrawal method only allows the transaction if there are sufficient funds. If the withdrawal is successful, return True; otherwise, return False.
  
  
  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
  
  # Test cases
  account1 = BankAccount("Alice", 1000)
  assert account1.get_balance() == 1000
  
  account1.deposit(500)
  assert account1.get_balance() == 1500
  
  assert account1.withdraw(700) == True
  assert account1.get_balance() == 800
  
  assert account1.withdraw(1000) == False
  assert account1.get_balance() == 800
  
  assert account1.withdraw(800) == True
  assert account1.get_balance() == 0
  
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