code: def find_closest_match(target_track, tracks):
      
      track = None
      # Get a list of (track, artist match ratio, name match ratio)
      tracks_with_match_ratio = [(
          track,
          get_similarity(target_track.artist, track.artist),
          get_similarity(target_track.name, track.name),
      ) for track in tracks]
      # Sort by artist then by title
      sorted_tracks = sorted(
          tracks_with_match_ratio,
          key=lambda t: (t[1], t[2]),
          reverse=True  # Descending, highest match ratio first
      )
      if sorted_tracks:
          track = sorted_tracks[0][0]  # Closest match to query
      return track
docs: Return closest match to target track