input: Write a function to design a class in Python for storing movie information including the name, year of release, genre, and rating. The function should return an instance of the class and print the details of the movie.
  class Movie:
      def __init__(self, name, release_year, genre, rating):
          self.name = name
          self.release_year = release_year
          self.genre = genre
          self.rating = rating
  
  assert Movie("Inception", 2010, "Sci-Fi", 8.8).name == "Inception"
  assert Movie("The Dark Knight", 2008, "Action", 9.0).release_year == 2008
  assert Movie("The Matrix", 1999, "Sci-Fi", 8.7).genre == "Sci-Fi"
  assert Movie("Forrest Gump", 1994, "Drama", 8.8).rating == 8.8
  movie = Movie("Avatar", 2009, "Fantasy", 7.8)
  print(movie.name, movie.release_year, movie.genre, movie.rating)
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