code: def _get_turn_labels_and_slots_map(labeled_line, output):
      # Turn tsv format: conversationId  turnNumber  utteranceId utterance   slot-labels intent
      conversation_id = labeled_line[0]
      turn_number = int(
          float(labeled_line[1])
      )  # cause a few got saved as float
      if conversation_id not in output:
          raise RuntimeError(
              "Should never happen; raw conversation text should be here"
          )
      if turn_number not in output[conversation_id]:
          output[conversation_id][turn_number] = {}
      output[conversation_id][turn_number] = {
          **output[conversation_id][turn_number],
          "slots": _get_slots_map(labeled_line[3], labeled_line[4]),
          "intents": [labeled_line[5]],
      }
  
imports: import parlai.core.build_data
  from parlai.core.build_data import DownloadableFile
  import csv
  from itertools import islice
  from pathlib import Path
  import os
  import json
  import re
  import tqdm
label_desc: Use image node_id 11 for calling a global function with example usage: _get_turn_labels_and_slots_map(labeled_line, output) without return types