input: Write a function to modify the given Python program to include the correct API request headers and parse the response correctly to print each user's data.
  assert api_request_with_headers('https://api.example.com/users', 'YOUR_API_TOKEN')==['User1', 'User2']
  assert api_request_with_headers('https://api.example.com/users', 'INVALID_TOKEN')==[]
  
  Expected Output:
  def api_request_with_headers(url, token):
      import requests
  
      headers = {
          'Authorization': f'Bearer {token}',
          'Content-Type': 'application/json',
      }
  
      response = requests.get(url, headers=headers).json()
  
      if 'data' in response:
          return [user['name'] for user in response['data']]
      else:
          return []
output: def api_request_with_headers(url, token):
      import requests
  
      headers = {
          'Authorization': f'Bearer {token}',
          'Content-Type': 'application/json',
      }
  
      response = requests.get(url, headers=headers).json()
  
      if 'data' in response:
          return [user['name'] for user in response['data']]
      else:
          return []