input: Write a function to create a Python class that represents a bank account. The class should have an initial balance specified when the account is created, allow for deposits and withdrawals, and provide a method to check the current balance. If the withdrawal is greater than the current balance, the transaction should fail, and balance should not change.
  assert BankAccount("Alice", 100)._balance==100
  assert BankAccount("Bob", 50)._balance==50
  assert BankAccount("Charlie", 0)._balance==0
  assert BankAccount("David", -50)._balance==-50
  assert BankAccount("Eve", 200).deposit(100).get_balance()==300
  assert BankAccount("Frank", 200).withdraw(300)==False
  assert BankAccount("Grace", 200).withdraw(100)==True
output: class BankAccount:
      def __init__(self, name, initial_balance):
          self._balance = initial_balance
          self.name = name
  
      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