input: Write a function to create a class in Python for storing movie information including the name, year of release, genre and rating. If the given information is complete then return the movie object else return None.
  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 create_movie("Interstellar", 2014, "Sci-Fi", 8.4).__dict__=={'name': 'Interstellar', 'release_year': 2014, 'genre': 'Sci-Fi', 'rating': 8.4}
  assert create_movie("The Dark Knight", 2008, "Action", 8.8).__dict__=={'name': 'The Dark Knight', 'release_year': 2008, 'genre': 'Action', 'rating': 8.8}
  assert create_movie("Inception", 2010, None, 7.9)==None
  assert create_movie(None, 1994, "Crime", 9.0)==None
  assert create_movie("Forrest Gump", 1994, "Drama", 8.7).__dict__=={'name': 'Forrest Gump', 'release_year': 1994, 'genre': 'Drama', 'rating': 8.7}
output: def create_movie(name, release_year, genre, rating):
      if name and release_year and genre and rating:
          return Movie(name, release_year, genre, rating)
      return None