input: def create_bank_account(name: str, balance: float) -> BankAccount:
      """ Create a bank account with the given name and initial balance.
      The bank account has three methods: `deposit`, `withdraw`, and `get_balance`.
      The `deposit` method increases the balance by the deposited amount.
      The `withdraw` method decreases the balance by the withdrawn amount only if there are sufficient funds.
      The `get_balance` method returns the current balance of the account.
      
      >>> account = create_bank_account("John Doe", 1000)
      >>> account.deposit(500)
      >>> account.get_balance()
      1500
      >>> account.withdraw(2000)
      False
      >>> account.withdraw(300)
      True
      >>> account.get_balance()
      1200
      """
output:     class BankAccount:
          def __init__(self, name: str, balance: float):
              self.name = name
              self.balance = balance
          
          def deposit(self, amount: float):
              self.balance += amount
          
          def withdraw(self, amount: float) -> bool:
              if amount > self.balance:
                  return False
              self.balance -= amount
              return True
          
          def get_balance(self) -> float:
              return self.balance
      
      return BankAccount(name, balance)