input: Write a function to modify the provided Python program for making a correct API request with necessary headers and printing each user data from the parsed response. The function should accept the API URL and the API token as parameters.
  assert api_request('https://api.example.com/users', 'YOUR_API_TOKEN')==None
  assert api_request('https://api.example.com/users', 'ANOTHER_API_TOKEN')==None
output: import requests
  
  def api_request(url, token):
      headers = {'Authorization': f'Bearer {token}'}
      response = requests.get(url, headers=headers)
      users = response.json()
      for user in users:
          print(user)