input: Write a python function to scrape IMDB top movies and store the titles and ratings in a dataframe.
  assert 'The Shawshank Redemption' in scrape_imdb_top_movies().title.values
  assert scrape_imdb_top_movies().shape[1] == 2
output: import requests
  import pandas as pd
  from bs4 import BeautifulSoup
  
  def scrape_imdb_top_movies():
      url = 'https://www.imdb.com/chart/top'
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
  
      movies = []
      ratings = []
  
      for item in soup.select('td.titleColumn'):
          movie = item.a.text
          movies.append(movie)
  
      for item in soup.select('td.ratingColumn.imdbRating'):
          rating = item.strong.text
          ratings.append(rating)
  
      df = pd.DataFrame({
          'title': movies,
          'rating': ratings
      })
  
      return df