input: Write a function to simulate a simple ATM machine using Python. The function should include a class for an account with methods for depositing and withdrawing funds, and another class for the ATM itself with methods for creating accounts, depositing, withdrawing, and printing balances. The function should be able to handle multiple accounts.  
  
  
  # account class with the necessary functions 
  class Account:
      def __init__(self, name, balance):
          self.name = name
          self.balance = balance
  
      def deposit(self, amount):
          self.balance += amount
  
      def withdrawal(self, amount):
          if amount <= self.balance:
              self.balance -= amount
          else:
              print("Insufficient balance.")
  
  # ATM class with the necessary functions
  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)
                  return
          print("Account not found.")
  
      def withdrawal(self, name, amount):
          for account in self.accounts:
              if account.name == name:
                  account.withdrawal(amount)
                  return
          print("Account not found.")
  
      def printBalance(self, name):
          for account in self.accounts:
              if account.name == name:
                  print(name, " Balance: ", account.balance)
                  return
          print("Account not found.")
  
  # Example usage:
  atm = ATM()
  atm.createAccount("Alice", 1000)
  atm.deposit("Alice", 500)
  atm.withdrawal("Alice", 200)
  atm.printBalance("Alice")
  
  # Test cases:
  atm2 = ATM()
  atm2.createAccount("Alice", 1000)
  atm2.deposit("Alice", 500)
  atm2.withdrawal("Alice", 200)
  atm2.printBalance("Alice")
  
  
  assert atm.printBalance("Alice") == "Alice Balance: 1300"  
  assert atm2.printBalance("Alice") == "Alice Balance: 1300"
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):
          if amount <= self.balance:
              self.balance -= amount
          else:
              print("Insufficient balance.")
  
  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)
                  return
          print("Account not found.")
  
      def withdrawal(self, name, amount):
          for account in self.accounts:
              if account.name == name:
                  account.withdrawal(amount)
                  return
          print("Account not found.")
  
      def printBalance(self, name):
          for account in self.accounts:
              if account.name == name:
                  print(name, " Balance: ", account.balance)
                  return
          print("Account not found.")