docs: def track_to_ref(track, with_track_no=False):
      """Convert a mopidy track to a mopidy ref."""
      if with_track_no and track.track_no > 0:
          name = '%d - ' % track.track_no
      else:
          name = ''
      for artist in track.artists:
          if len(name) > 0:
              name += ', '
          name += artist.name
      if (len(name)) > 0:
          name += ' - '
      name += track.name
      return Ref.track(uri=track.uri, name=name)