input: Write a python function to download the content from a URL and save it to a file.
  assert download_content('https://www.example.com') == 'example.com'
  assert download_content('https://www.test.com') == 'test.com'
  assert download_content('https://www.sample.com') == 'sample.com'
output: def download_content(url):
      import requests
      from urllib.parse import urlparse
  
      response = requests.get(url)
      response.raise_for_status()
  
      parsed_url = urlparse(url)
      filename = parsed_url.netloc
  
      with open(filename, 'wb') as file:
          file.write(response.content)
      
      return filename