input: Write a function to implement the class Song with two instance variables, title and artist, and three methods, str(), eq(), and length(). If the provided class matches the given criteria, return True. If any part of the class definition does not match, return False.
  assert song_class_implementation("class Song:\n    def __init__(self, title, artist):\n        self.title = title\n        self.artist = artist\n    \n    def __str__(self):\n        return f'Title: {self.title}\\nArtist: {self.artist}'\n    \n    def __eq__(self, other):\n        return self.artist == other.artist and self.title == other.title\n\n    def length(self):\n        return len(self.title)")==True
  assert song_class_implementation("class Song:\n    def __init__(self, title, artist):\n        self.title = title\n        self.artist = artist\n    \n    def __str__(self):\n        return f'Title: {self.title}\\nArtist: {self.artist}'\n    \n    def __eq__(self, other):\n        return self.artist == other.title and self.title == other.artist\n\n    def length(self):\n        return len(self.title)")==False
  assert song_class_implementation("class Song:\n    def __init__(self, title, artist):\n        self.title = title\n        self.artist = artist\n    \n    def __str__(self):\n        return f'Title: {self.title}\\nArtist: {self.artist}'\n    \n    def __eq__(self, other):\n        return self.artist == other.artist and self.title == other.title\n\n    def length(self):\n        return len(self.artist)")==False
output: def song_class_implementation(class_definition):
      try:
          exec(class_definition)
          song1 = Song("Bohemian Rhapsody", "Queen")
          song2 = Song("Bohemian Rhapsody", "Queen")
          song3 = Song("Stairway to Heaven", "Led Zeppelin")
          
          if str(song1) != "Title: Bohemian Rhapsody\nArtist: Queen":
              return False
          if song1 != song2 or song1 == song3:
              return False
          if song1.length() != len("Bohemian Rhapsody"):
              return False
          
          return True
      except:
          return False