input: Write a function to scrape a given website. The function should take a website URL as input and return the content of the webpage as extracted by BeautifulSoup. If the webpage cannot be accessed, the function should return an error message.
  def scrape_website(url):
      try:
          page = requests.get(url)
          if page.status_code == 200:
              soup = BeautifulSoup(page.text, 'html.parser')
              return soup.get_text()
          else:
              return f"Failed to retrieve webpage: {page.status_code}"
      except requests.RequestException as e:
          return f"Error accessing webpage: {e}"
  
  assert scrape_website('https://www.example.com')=='Example Domain\nThis domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.\nMore information...\n'
  assert scrape_website('https://nonexistent-url.com')=='Failed to retrieve webpage: 404'
  assert scrape_website('invalid-url')=='Error accessing webpage: Invalid URL \'invalid-url\': No schema supplied. Perhaps you meant http://invalid-url?'
output: def scrape_website(url):
      try:
          page = requests.get(url)
          if page.status_code == 200:
              soup = BeautifulSoup(page.text, 'html.parser')
              return soup.get_text()
          else:
              return f"Failed to retrieve webpage: {page.status_code}"
      except requests.RequestException as e:
          return f"Error accessing webpage: {e}"