input: Write a python function to get a list of all sports data sets from a given API endpoint and key.
  assert get_sports_data('http://api.datapoint.metoffice.gov.uk/', 'YOUR_API_KEY') == ['Football', 'Cricket', 'Tennis'] # example of expected sports
  assert get_sports_data('http://api.datapoint.metoffice.gov.uk/', 'ANOTHER_API_KEY') == ['Rugby', 'Golf'] # another example of expected sports
output: import requests
  
  def get_sports_data(endpoint, api_key):
      url = f"{endpoint}sports?api-key={api_key}"
      response = requests.get(url)
      if response.status_code == 200:
          data = response.json()
          return [sport['name'] for sport in data['sports']]
      else:
          return []