code: def convert_mapped_tags(positions, tag_ids, length):
      labels = [None] * length
      mask = [0] * length
      for pos, tag_id in zip(positions, tag_ids):
          labels[pos] = tag_id
          mask[pos] = 1
      return labels, mask
  
imports: from jiant.tasks.utils import ExclusiveSpan
label_desc: Use image node_id 2 for calling a global function with example usage: convert_mapped_tags(positions, tag_ids, length) and returns: labels,  mask