input: Write a function to ensure that a Python class named `Movie` is properly designed for storing movie information including the name, year of release, genre, and rating. The class should have an `__init__` method to initialize these attributes. Construct an instance of this class with the provided data and then print the movie's details.
  
  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
  assert repr(movie) == "Movie(name='Interstellar', release_year=2014, genre='Sci-Fi', rating=8.4)"
output: def __init__(self, name, release_year, genre, rating):
      self.name = name
      self.release_year = release_year
      self.genre = genre
      self.rating = rating
  
  def __repr__(self):
      return f"Movie(name='{self.name}', release_year={self.release_year}, genre='{self.genre}', rating={self.rating})"