input: Write a function to connect to a given domain and fetch the contents of its homepage. The function should return the content of the page if the request is successful, otherwise it should return an error message. The function should use the requests module to make the HTTP request.
  
  assert fetch_homepage("https://www.example.com/") == b"<!doctype html>\n<html>\n<head>\n<title>Example Domain</title>\n<meta charset=\"utf-8\" />\n<meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n<style type=\"text/css\">\nbody {\nbackground-color, Your output is missing the closing tags and content. Please provide the full output as specified.
output: def fetch_homepage(url):
      import requests
      try:
          response = requests.get(url)
          response.raise_for_status()
          return response.content
      except requests.RequestException as e:
          return str(e)