input: Write a python function to get movie information from IMDb for a given year. 
  assert isinstance(get_movie_info(2020), list)
  assert all(isinstance(movie, dict) for movie in get_movie_info(2020))
  assert 'title' in get_movie_info(2020)[0]
  assert 'year' in get_movie_info(2020)[0]
  assert 'genre' in get_movie_info(2020)[0]
  assert 'rating' in get_movie_info(2020)[0]
output: def get_movie_info(year):
      import requests
      from bs4 import BeautifulSoup
      
      url = f'https://www.imdb.com/search/title/?year={year}&title_type=feature&'
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      movies = []
      for item in soup.find_all('div', class_='lister-item mode-advanced'):
          title = item.h3.a.text
          year = item.h3.find('span', class_='lister-item-year').text.strip('()')
          genre = item.find('span', class_='genre').text.strip()
          rating = item.find('div', class_='inline-block ratings-imdb-rating')['data-value'] if item.find('div', class_='inline-block ratings-imdb-rating') else 'N/A'
          
          movies.append({
              'title': title,
              'year': year,
              'genre': genre,
              'rating': rating
          })
      
      return movies