input: Write a python function to get the current temperature and humidity for a given location using OpenWeatherMap API.
  assert get_weather('London') == {'location': 'London', 'temperature': 15.0, 'humidity': 70}
  assert get_weather('New York') == {'location': 'New York', 'temperature': 20.0, 'humidity': 60}
  assert get_weather('Tokyo') == {'location': 'Tokyo', 'temperature': 25.0, 'humidity': 80}
output: import requests
  
  def get_weather(location):
      api_key = 'YOUR_API_KEY'
      base_url = 'http://api.openweathermap.org/data/2.5/weather'
      params = {
          'q': location,
          'appid': api_key,
          'units': 'metric'
      }
      response = requests.get(base_url, params=params)
      data = response.json()
      temperature = data['main']['temp']
      humidity = data['main']['humidity']
      return {
          'location': location,
          'temperature': temperature,
          'humidity': humidity
  }