input: 
  def scrape_headlines(url: str) -> None:
      """Scrape the headlines from a given online news website URL.
      >>> scrape_headlines("https://www.news.com/")
      # Output will be the headlines from the given website
      # Example output (not actual):
      # Top Headline
      # Breaking News
      # Weather Update
      """
      import requests
      from bs4 import BeautifulSoup
  
      # get the response in the form of html
      r = requests.get(url)
  
      # create a beautifulsoup object to parse contents
      soup = BeautifulSoup(r.content, 'html5lib')
  
      # find headlines from the parsed page
      headlines = soup.find_all('h2')
  
      # Print the headlines
      for headline in headlines:
          print(headline.text)
  
output:     # Check if the request was successful
      if r.status_code != 200:
          print("Failed to retrieve the webpage")
          return
  
      # If no headlines found, print a message
      if not headlines:
          print("No headlines found on the page")
          return