input: Write a function that designs a class in Python for storing movie information including the name, year of release, genre, and rating. The function should implement the class and return an instance of the class with appropriate values for testing. Ensure the class can store and return the attributes correctly.
  
  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)
  
  assert create_movie("Interstellar", 2014, "Sci-Fi", 8.4).name == "Interstellar"
  assert create_movie("Interstellar", 2014, "Sci-Fi", 8.4).release_year == 2014
  assert create_movie("Interstellar", 2014, "Sci-Fi", 8.4).genre == "Sci-Fi"
  assert create_movie("Interstellar", 2014, "Sci-Fi", 8.4).rating == 8.4
output: def create_movie(name, release_year, genre, rating):
      return Movie(name, release_year, genre, rating)