input: 
  import requests
  from bs4 import BeautifulSoup
  from typing import List
  
  def scrape_headlines(url: str) -> List[str]:
      """ Scrapes the headlines from a given online news website.
      >>> scrape_headlines("https://www.example-news.com/")
      ['Breaking News: Major Event Happened', 'Another Headline', 'Final Headline']
      """
      r = requests.get(url)
      soup = BeautifulSoup(r.content, 'html5lib')
      headlines = soup.find_all('h2')
      return [headline.text for headline in headlines]
  
output:     r = requests.get(url)
      soup = BeautifulSoup(r.content, 'html5lib')
      headlines = soup.find_all('h2')
      return [headline.text for headline in headlines]