input: 
  import requests
  
  def api_request(url: str, token: str) -> list:
      """Makes an API request to the given URL with authorization header and parses the response.
      Returns a list of users from the response.
      >>> api_request('https://api.example.com/users', 'YOUR_API_TOKEN')
      [{'id': 1, 'name': 'John Doe'}, {'id': 2, 'name': 'Jane Doe'}]
      >>> api_request('https://api.example.com/users', 'INVALID_TOKEN')
      []
      """
      headers = {
          'Authorization': f'Bearer {token}',
          'Content-Type': 'application/json',
      }
      response = requests.get(url, headers=headers).json()
      return [user for user in response.get('data', [])]
  
output:     if isinstance(response, dict) and 'error' in response:
          return []