input: Write a function to make an API call and return the status code and data as a dictionary.
  assert get_api_data('https://api.example.com/users') == (200, {'user1': 'data1', 'user2': 'data2'})
  assert get_api_data('https://api.example.com/invalid') == (404, {})
  assert isinstance(get_api_data('https://api.example.com/users')[1], dict)
output: import requests
  
  def get_api_data(url):
      response = requests.get(url)
      status_code = response.status_code
      try:
          data = response.json()
      except ValueError:
          data = {}
      return status_code, data