input: Write a function to create a web scraper using Python that collects the title and content from the homepage of a given website. The function should take the URL of the target website as input and return the title and content as a tuple. If the title or content is not found, return None for that part. Use the `requests` and `bs4` libraries for this task.
  assert scrape_homepage('https://www.example.com')==('Example Domain', 'This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.')
  assert scrape_homepage('https://www.nonexistentexample.com')==(None, None)
  assert scrape_homepage('https://www.anotherwebsite.com')==('Another Website', 'Content of another website')
  assert scrape_homepage('https://www.websitewithnocontext.com')==('Website with no content', None)
  assert scrape_homepage('https://www.websitewithnotitle.com')==(None, 'Content of website without title')
output: def scrape_homepage(url):
      import requests
      from bs4 import BeautifulSoup
      try:
          response = requests.get(url)
          response.raise_for_status()
          soup = BeautifulSoup(response.text, 'html.parser')
          title = soup.title.string.strip() if soup.title else None
          content = soup.get_text().strip() if soup.get_text() else None
          return (title, content)
      except:
          return (None, None)