input: Write a function to create a Python script that connects to a specified domain and fetches the contents of its homepage. If the connection is successful and the status code is 200, print the content of the homepage. Otherwise, print "Error fetching the page". 
  
  def fetch_homepage_content(url):
      import requests
      response = requests.get(url)
      if response.status_code == 200:
          return response.content
      else:
          return "Error fetching the page"
  
  assert fetch_homepage_content("https://www.example.com/")==b'<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>\n...'\
  assert fetch_homepage_content("https://www.invalidurl.com/")=="Error fetching the page"
output: def fetch_homepage_content(url):
      import requests
      response = requests.get(url)
      if response.status_code == 200:
          return response.content
      else:
          return "Error fetching the page"