input: Write a function to modify the given Python program to make a correct API request and parse the response. The function should include necessary headers and print each user's data from the response. If the input program is already correct, return it as is.
  def modify_api_request(program):
      # Modify the program as per the task description
      if 'headers = {' not in program:
          program = program.replace("response = requests.get(url)", '''headers = {
   'Authorization': 'Bearer YOUR_API_TOKEN',
   'Content-Type': 'application/json',
  }
  
  response = requests.get(url, headers=headers)''')
          program = program.replace("print(response.json())", "for user in response.json()['data']:\n print(user)")
      return program
  assert modify_api_request('import requests\n\nurl = \'https://api.example.com/users\'\n\nresponse = requests.get(url)\n\nprint(response.json())')=="import requests\n\nurl = 'https://api.example.com/users'\n\nheaders = {\n 'Authorization': 'Bearer YOUR_API_TOKEN',\n 'Content-Type': 'application/json',\n}\n\nresponse = requests.get(url, headers=headers)\n\nfor user in response.json()['data']:\n print(user)"
  assert modify_api_request('import requests\n\nurl = \'https://api.example.com/users\'\n\nheaders = {\n \'Authorization\': \'Bearer YOUR_API_TOKEN\',\n \'Content-Type\': \'application/json\',\n}\n\nresponse = requests.get(url, headers=headers)\n\nfor user in response.json()[\'data\']:\n print(user)')=="import requests\n\nurl = 'https://api.example.com/users'\n\nheaders = {\n 'Authorization': 'Bearer YOUR_API_TOKEN',\n 'Content-Type': 'application/json',\n}\n\nresponse = requests.get(url, headers=headers)\n\nfor user in response.json()['data']:\n print(user)"
output: def modify_api_request(program):
      if 'headers = {' not in program:
          program = program.replace("response = requests.get(url)", '''headers = {
   'Authorization': 'Bearer YOUR_API_TOKEN',
   'Content-Type': 'application/json',
  }
  
  response = requests.get(url, headers=headers)''')
          program = program.replace("print(response.json())", "for user in response.json()['data']:\n print(user)")
      return program