input: Write a function to design a Python program simulating a simple ATM machine. The program should include an Account class with methods for initializing an account with a name and balance, depositing money, and withdrawing money. It should also include an ATM class with methods for creating an account, depositing and withdrawing funds, and printing the balance for a specified account. If no matching account is found when trying to deposit, withdraw, or print balance, the program should handle it appropriately, such as by printing a message. The function should have the following structure:
  
  
  def create_atm_system():
      # 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):
              self.balance -= amount
  
      # 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(f"No account found with name {name}.")
  
          def withdrawal(self, name, amount):
              for account in self.accounts:
                  if account.name == name:
                      account.withdrawal(amount)
                      return
              print(f"No account found with name {name}.")
  
          def printBalance(self, name):
              for account in self.accounts:
                  if account.name == name:
                      print(name, "Balance:", account.balance)
                      return
              print(f"No account found with name {name}.")
  
  
  assert [call_atm_system()] == None
  assert [call creation of account, deposit, withdrawal, and balance printing] == ['Name', 'Balance: ', 0]
  assert [attempt deposit on non-existent account] == ['No account found with name ', 'NonExistentName'] 
  assert [attempt withdrawal on non-existent account] == ['No account found with name ', 'NonExistentName'] 
  assert [attempt balance printing on non-existent account] == ['No account found with name ', 'NonExistentName'] 
  
  Call the function with:
  
  def call_atm_system():
      atm = ATM()
      atm.createAccount('Name', 0)
      atm.deposit('Name', 100)
      atm.withdrawal('Name', 50)
      atm.printBalance('Name')
  
  Execute the function.
output: def create_atm_system():
      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)
                      return
              print(f"No account found with name {name}.")
  
          def withdrawal(self, name, amount):
              for account in self.accounts:
                  if account.name == name:
                      account.withdrawal(amount)
                      return
              print(f"No account found with name {name}.")
  
          def printBalance(self, name):
              for account in self.accounts:
                  if account.name == name:
                      print(name, "Balance:", account.balance)
                      return
              print(f"No account found with name {name}.")