input: Write a function to simulate a simple ATM machine using the given account and ATM classes. The function should allow creating accounts, depositing money, withdrawing money, and printing account balances. Include a method in the ATM class to find an account and perform the requested operation. Provide assert statements to test the functionality of the ATM class and verify the output.
  
  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)
                  return account.balance
          return None
  
  atm = ATM()
  atm.createAccount("John", 1000)
  atm.deposit("John", 500)
  assert atm.printBalance("John") == 1500
  atm.withdrawal("John", 200)
  assert atm.printBalance("John") == 1300
  atm.createAccount("Doe", 2000)
  atm.deposit("Doe", 300)
  assert atm.printBalance("Doe") == 2300
  atm.withdrawal("Doe", 500)
  assert atm.printBalance("Doe") == 1800
output: def simulateATM():
      atm = ATM()
      atm.createAccount("John", 1000)
      atm.deposit("John", 500)
      atm.withdrawal("John", 200)
      atm.createAccount("Doe", 2000)
      atm.deposit("Doe", 300)
      atm.withdrawal("Doe", 500)