input: Write a python function to get weather data for a given location from the OpenWeatherMap API.
  assert get_weather("http://api.openweathermap.org/data/2.5/weather?q=London") == (expected_temp, expected_temp_min, expected_temp_max)
  assert get_weather("http://api.openweathermap.org/data/2.5/weather?q=New York") == (expected_temp, expected_temp_min, expected_temp_max)
  assert get_weather("http://api.openweathermap.org/data/2.5/weather?q=Tokyo") == (expected_temp, expected_temp_min, expected_temp_max)
output: import requests
  
  def get_weather(api_url):
      response = requests.get(api_url)
      data = response.json()
      
      if response.status_code != 200:
          raise Exception(f"Error fetching data: {data.get('message', 'Unknown error')}")
      
      main_data = data['main']
      temp = main_data['temp']
      temp_min = main_data['temp_min']
      temp_max = main_data['temp_max']
      
      return temp, temp_min, temp_max