input: Write a function to connect to a domain and fetch the contents of its homepage. If the request is successful, print the content of the homepage, else print an error message.
  
  import requests
  
  def fetch_homepage(url):
      response = requests.get(url)
      if response.status_code == 200:
          return response.content
      else:
          return "Error fetching the page"
  
  assert fetch_homepage("https://www.example.com/") is not None
  assert fetch_homepage("https://www.nonexistentdomain.com/") == "Error fetching the page"
output: def fetch_homepage(url):
      response = requests.get(url)
      if response.status_code == 200:
          return response.content
      else:
          return "Error fetching the page"