input: Write a python function to scrape animal weights from a given URL using requests and BeautifulSoup.
  assert scrape_animal_weights('https://example.com') == {'Lion': '200 kg', 'Tiger': '150 kg', 'Elephant': '1000 kg'}
  assert scrape_animal_weights('https://anotherexample.com') == {'Bear': '300 kg', 'Giraffe': '900 kg', 'Zebra': '400 kg'}
  assert scrape_animal_weights('https://yetanotherexample.com') == {'Horse': '500 kg', 'Cow': '700 kg', 'Sheep': '70 kg'}
output: import requests
  from bs4 import BeautifulSoup
  
  def scrape_animal_weights(url):
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      weights = {}
      for animal in soup.find_all('div', class_='animal'):
          name = animal.find('h2').text.strip()
          weight = animal.find('span', class_='weight').text.strip()
          weights[name] = weight
          
      return weights