input: Write a function to edit the given Python program to make a correct API request and parse the response. The function should add headers for authorization and content type, make the request, and print each user in the response data.
  assert edit_request_and_parse_response('import requests\nurl = \'https://api.example.com/users\'\nresponse = requests.get(url)\nprint(response.json())') == 'import requests\nurl = \'https://api.example.com/users\'\nheaders = \{\n \'Authorization\': \'Bearer YOUR_API_TOKEN\',\'Content-Type\': \'application/json\'\,\}\nresponse = requests.get(url\, headers=headers).json()\nfor user in response[\'data\']:\n print(user)'
  assert edit_request_and_parse_response('import requests\nurl = \'https://api.otherapi.com/data\'\nresponse = requests.get(url)\nprint(response.json())') == 'import requests\nurl = \'https://api.otherapi.com/data\'\nheaders = \{\n \'Authorization\': \'Bearer YOUR_API_TOKEN\',\'Content-Type\': \'application/json\'\,\}\nresponse = requests.get(url\, headers=headers).json()\nfor user in response[\'data\']:\n print(user)'
  assert edit_request_and_parse_response('import requests\nurl = \'https://api.sample.com/items\'\nresponse = requests.get(url)\nprint(response.json())') == 'import requests\nurl = \'https://api.sample.com/items\'\nheaders = \{\n \'Authorization\': \'Bearer YOUR_API_TOKEN\',\'Content-Type\': \'application/json\'\,\}\nresponse = requests.get(url\, headers=headers).json()\nfor user in response[\'data\']:\n print(user)'
  assert edit_request_and_parse_response('import requests\nurl = \'https://api.test.com/info\'\nresponse = requests.get(url)\nprint(response.json())') == 'import requests\nurl = \'https://api.test.com/info\'\nheaders = \{\n \'Authorization\': \'Bearer YOUR_API_TOKEN\',\'Content-Type\': \'application/json\'\,\}\nresponse = requests.get(url\, headers=headers).json()\nfor user in response[\'data\']:\n print(user)'
  assert edit_request_and_parse_response('') == ''
output: def edit_request_and_parse_response(program):
      if not program:
          return ''
      lines = program.split('\n')
      url_line = lines[1]
      new_program = [
          lines[0],
          url_line,
          "headers = {",
          " 'Authorization': 'Bearer YOUR_API_TOKEN',",
          " 'Content-Type': 'application/json',",
          "}",
          f"response = requests.get({url_line.split('=')[1].strip()}, headers=headers).json()",
          "for user in response['data']:",
          " print(user)"
      ]
      return '\n'.join(new_program)