input: Write a python function to scrape the first 5 headlines from the New York Times homepage and return them as a list.
  assert len(scrape_headlines()) == 5
  assert isinstance(scrape_headlines(), list)
  assert all(isinstance(headline, str) for headline in scrape_headlines())
output: def scrape_headlines():
      import requests
      from bs4 import BeautifulSoup
  
      url = 'https://www.nytimes.com/'
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      headlines = []
      for item in soup.find_all('h2', class_='css-78b01r esl82me1', limit=5):
          headlines.append(item.get_text())
      
      return headlines