input: Write a function to create a class in Python for storing movie information including the name, year of release, genre and rating. The class should have an initializer method to set these attributes. The function should return an instance of the class with the given attributes.
  
  class Movie:
      def __init__(self, name, release_year, genre, rating):
          self.name = name
          self.release_year = release_year
          self.genre = genre
          self.rating = rating
  
  movie = Movie("Interstellar", 2014, "Sci-Fi", 8.4)
  assert movie.name == "Interstellar"
  assert movie.release_year == 2014
  assert movie.genre == "Sci-Fi"
  assert movie.rating == 8.4
  
  movie = Movie("Inception", 2010, "Action", 8.8)
  assert movie.name == "Inception"
  assert movie.release_year == 2010
  assert movie.genre == "Action"
  assert movie.rating == 8.8
  
  movie = Movie("The Dark Knight", 2008, "Action", 9.0)
  assert movie.name == "The Dark Knight"
  assert movie.release_year == 2008
  assert movie.genre == "Action"
  assert movie.rating == 9.0
  
  movie = Movie("Titanic", 1997, "Romance", 7.8)
  assert movie.name == "Titanic"
  assert movie.release_year == 1997
  assert movie.genre == "Romance"
  assert movie.rating == 7.8
  
  movie = Movie("Toy Story", 1995, "Animation", 8.3)
  assert movie.name == "Toy Story"
  assert movie.release_year == 1995
  assert movie.genre == "Animation"
  assert movie.rating == 8.3
output: def create_movie(name, release_year, genre, rating):
      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(name, release_year, genre, rating)