input: Write a python function to manage a movie library by adding and deleting movies and listing all movies in the library. Use the Movie and MovieLibrary classes provided.
  ```python
  import os
  
  # Create a Movie class to store movie details
  class Movie(object):
   def __init__(self, title, year):
      self.title = title
      self.year = year
  
  # Create a MovieLibrary class to store the list of movies
  class MovieLibrary(object):
   def __init__(self, name):
      self.name = name
      self.movies = []
  
  # Method to add a movie to the library
   def add_movie(self, movie):
      self.movies.append(movie)
  
  # Method to delete a movie from the library
   def delete_movie(self, movie):
      self.movies.remove(movie)
  
  # Method to list all the movies in the library
   def list_movies(self):
      return ['{} ({})'.format(movie.title, movie.year) for movie in self.movies]
  
  # Create a new movie library instance
  lib = MovieLibrary('My Movie Library')
  
  # Add some movies to our library
  lib.add_movie(Movie('The Dark Knight', 2008))
  lib.add_movie(Movie('Back to the Future', 1985))
  lib.add_movie(Movie('Avengers: Endgame', 2019))
  
  # List all the movies in the library
  assert lib.list_movies() == ['The Dark Knight (2008)', 'Back to the Future (1985)', 'Avengers: Endgame (2019)']
  
  # Delete a movie from the library
  lib.delete_movie(Movie('Back to the Future', 1985))
  
  # List the movies again to verify that the movie was deleted
  assert lib.list_movies() == ['The Dark Knight (2008)', 'Avengers: Endgame (2019)']
output: # Delete a movie from the library
   def delete_movie(self, movie):
      self.movies = [m for m in self.movies if m.title != movie.title or m.year != movie.year]
  
  # List the movies again to verify that the movie was deleted
  assert lib.list_movies() == ['The Dark Knight (2008)', 'Avengers: Endgame (2019)']