input: Write a function to simulate a simple ATM machine using two classes: Account and ATM. The Account class should have methods to initialize the account with a name and balance, deposit money, and withdraw money. The ATM class should have methods to create a new account, deposit money into an account, withdraw money from an account, and print the balance of an account based on the account name. The function should initialize the ATM and then perform operations based on the input.
  
  class Account:
      def __init__(self, name, balance):
          self.name = name
          self.balance = balance
  
      def deposit(self, amount):
          self.balance += amount
  
      def withdrawal(self, amount):
          self.balance -= amount
  
  class ATM:
      def __init__(self):
          self.accounts = []
  
      def createAccount(self, name, balance):
          account = Account(name, balance)
          self.accounts.append(account)
  
      def deposit(self, name, amount):
          for account in self.accounts:
              if account.name == name:
                  account.deposit(amount)
  
      def withdrawal(self, name, amount):
          for account in self.accounts:
              if account.name == name:
                  account.withdrawal(amount)
  
      def printBalance(self, name):
          for account in self.accounts:
              if account.name == name:
                  print(name, " Balance: ", account.balance)
  
  # Test cases
  atm = ATM()
  atm.createAccount("John", 1000)
  atm.deposit("John", 500)
  atm.withdrawal("John", 200)
  assert atm.accounts[0].balance == 1300
  
  atm.createAccount("Jane", 2000)
  atm.withdrawal("Jane", 1000)
  atm.printBalance("Jane")
  assert atm.accounts[1].balance == 1000
output: def simulate_atm():
      atm = ATM()
      atm.createAccount("John", 1000)
      atm.deposit("John", 500)
      atm.withdrawal("John", 200)
      atm.createAccount("Jane", 2000)
      atm.withdrawal("Jane", 1000)
      atm.printBalance("Jane")