code: def chords(chord_labels, intervals, fs, **kwargs):
      
      util.validate_intervals(intervals)
  
      # Convert from labels to chroma
      roots, interval_bitmaps, _ = chord.encode_many(chord_labels)
      chromagram = np.array([np.roll(interval_bitmap, root)
                             for (interval_bitmap, root)
                             in zip(interval_bitmaps, roots)]).T
  
      return chroma(chromagram, intervals, fs, **kwargs)
docs: Synthesizes chord labels
  
      Parameters
      ----------
      chord_labels : list of str
          List of chord label strings.
      intervals : np.ndarray, shape=(len(chord_labels), 2)
          Start and end times of each chord label
      fs : int
          Sampling rate to synthesize at
      kwargs
          Additional keyword arguments to pass to
          :func:`mir_eval.sonify.time_frequency`
  
      Returns
      -------
      output : np.ndarray
          Synthesized chord labels