input: Write a function that generates a class in Python for storing movie information including the name, year of release, genre, and rating. The function should define the class and return an instance of that class with the given movie details.
  
  
  def create_movie_class():
      class Movie:
          def __init__(self, name, release_year, genre, rating):
              self.name = name
              self.release_year = release_year
              self.genre = genre
              self.rating = rating
      return Movie
  
  Movie = create_movie_class()
  assert Movie("Interstellar", 2014, "Sci-Fi", 8.4).name == "Interstellar"
  assert Movie("Interstellar", 2014, "Sci-Fi", 8.4).release_year == 2014
  assert Movie("Interstellar", 2014, "Sci-Fi", 8.4).genre == "Sci-Fi"
  assert Movie("Interstellar", 2014, "Sci-Fi", 8.4).rating == 8.4
  assert Movie("The Dark Knight", 2008, "Action", 9.0).name == "The Dark Knight"
  assert Movie("The Dark Knight", 2008, "Action", 9.0).release_year == 2008
  assert Movie("The Dark Knight", 2008, "Action", 9.0).genre == "Action"
  assert Movie("The Dark Knight", 2008, "Action", 9.0).rating == 9.0
  
output: def create_movie_class():
      class Movie:
          def __init__(self, name, release_year, genre, rating):
              self.name = name
              self.release_year = release_year
              self.genre = genre
              self.rating = rating
      return Movie