code: def get_chunk_type(tok, idx_to_tag):
      """
      Args:
          tok: id of token, ex 4
          idx_to_tag: dictionary {4: "B-PER", ...}
      Returns:
          tuple: "B", "PER"
      """
      tag_name = idx_to_tag[tok]
      content = tag_name.split("-")
      tag_class = content[0]
      if len(content) == 1:
          return tag_class
      ht = content[-1]
      return tag_class, ht
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_chunk_type(tok, idx_to_tag) and returns: tag_class,  ht, tag_class