input: Write a function to scrape a given website and return the content as a BeautifulSoup object. The function should take a URL as input and return the BeautifulSoup object. If the URL is invalid, the function should return None.
  assert scrape_website('https://www.example.com').title.string=="Example Domain"
  assert scrape_website('https://www.invalidurl.com')==None
  assert type(scrape_website('https://www.example.com'))==BeautifulSoup
output: def scrape_website(url):
      try:
          response = requests.get(url)
          response.raise_for_status()
          return BeautifulSoup(response.content, 'html.parser')
      except:
          return None