input: Write a function to create a Movie class in Python that stores information including the name, year of release, genre, and rating. The function should return an instance of this class when given movie details.
  assert create_movie('Interstellar', 2014, 'Sci-Fi', 8.4).__dict__ == {'name': 'Interstellar', 'release_year': 2014, 'genre': 'Sci-Fi', 'rating': 8.4}
  assert create_movie('Inception', 2010, 'Sci-Fi', 8.8).__dict__ == {'name': 'Inception', 'release_year': 2010, 'genre': 'Sci-Fi', 'rating': 8.8}
  assert create_movie('The Matrix', 1999, 'Sci-Fi', 8.7).__dict__ == {'name': 'The Matrix', 'release_year': 1999, 'genre': 'Sci-Fi', 'rating': 8.7}
  assert create_movie('Forrest Gump', 1994, 'Drama', 8.8).__dict__ == {'name': 'Forrest Gump', 'release_year': 1994, 'genre': 'Drama', 'rating': 8.8}
  assert create_movie('Life in a Metro', 2007, 'Romance', 7.3).__dict__ == {'name': 'Life in a Metro', 'release_year': 2007, 'genre': 'Romance', 'rating': 7.3}
output: class Movie:
      def __init__(self, name, release_year, genre, rating):
          self.name = name
          self.release_year = release_year
          self.genre = genre
          self.rating = rating
  
  def create_movie(name, release_year, genre, rating):
      return Movie(name, release_year, genre, rating)