code: def get_all_slots(slot_vals, query_vals):
      all_slots = []
      open_slot = []
      for _idx, (slot, query) in enumerate(zip(slot_vals, query_vals)):
          if open_slot:
              if not is_valid_slot(slot[0]):
                  slot_beg_index = open_slot[0][1][0]
                  slot_end_index = open_slot[-1][1][1]
                  all_slots.append(
                      str(slot_beg_index)
                      + ":"
                      + str(slot_end_index)
                      + ":"
                      + extract_slot_name(open_slot[0][0])
                  )
                  open_slot.clear()
                  continue
          if is_valid_slot(slot[0]):
              open_slot.append([slot[0], query[1]])
      return ",".join(all_slots)
  
file_path: pytext/demo/atis_joint_model/data_processor.py
imports: import os
  import random
  import click
  from pytext.utils.file_io import PathManager
label_desc: Use image node_id 5 for calling a global function with example usage: get_all_slots(slot_vals, query_vals) and returns: str