input: from typing import Optional, Tuple
  
  def scrape_homepage(url: str) -> Tuple[Optional[str], Optional[str]]:
      """
      Scrapes the title and content from the homepage of a given website.
      If the title or content is not found, returns None for that element.
  
      >>> scrape_homepage('https://www.example.com')
      ('Example Domain', 'This domain is for use in illustrative examples in documents.')
      >>> scrape_homepage('http://nonexistent.website')
      (None, None)
      """
      try:
          r = requests.get(url)
          r.raise_for_status()
          html = bs4.BeautifulSoup(r.text, "html.parser")
  
          title = html.find('title')
          content = html.find('div', {'class': 'content'})
  
          return (title.text if title else None, content.text if content else None)
      except requests.exceptions.RequestException:
          return (None, None)
output:     try:
          import requests
          import bs4
      except ImportError:
          return (None, None)