code: def reference_to_lol(id, duration, emotion):
      """change reference to a list of list
      Arguments
      ---------
      id (str): id of the utterance
      duration (float): duration of the utterance
      emotion (list of dicts): the ground truth emotion and its duration,
          e.g. [{'emo': 'angry', 'start': 1.016, 'end': 6.336}]
  
      Returns
      -------
      lol : list of list
          It has each list structure as [rec_id, sseg_start, sseg_end, spkr_id].
  
      Example
      -------
      >>> from speechbrain.utils.EDER import reference_to_lol
      >>> id="u1"
      >>> duration=8.0
      >>> emotion=[{'emo': 'angry', 'start': 1.016, 'end': 6.336}]
      >>> reference_to_lol(id, duration, emotion)
      [['u1', 0, 1.016, 'n'], ['u1', 1.016, 6.336, 'a'], ['u1', 6.336, 8.0, 'n']]
      """
      assert (
          len(emotion) == 1
      ), "NotImplementedError: The solution is only implemented for one-emotion utterance for now."
      lol = []
  
      start = emotion[0]["start"]
      end = emotion[0]["end"]
      if start > 0:
          lol.append([id, 0, start, "n"])
      lol.append([id, start, end, emotion[0]["emo"][0]])
  
      duration = float(duration)  # for recipe tests
      if end < duration:
          lol.append([id, end, duration, "n"])
      return lol
  
label_desc: Use image node_id 5 for calling a global function with example usage: reference_to_lol(id, duration, emotion) and returns: lol