code: def map_tags_to_token_position(flat_stripped, indices, split_text):
      char_index = 0
      current_string = flat_stripped
      positions = [None] * len(split_text)
      for i, token in enumerate(split_text):
          found_index = current_string.find(token.lower())
          assert found_index != -1
          positions[i] = indices[char_index + found_index]
          char_index += found_index + len(token)
          current_string = flat_stripped[char_index:]
      for elem in positions:
          assert elem is not None
      return positions
  
imports: from jiant.tasks.utils import ExclusiveSpan
label_desc: Use image node_id 1 for calling a global function with example usage: map_tags_to_token_position(flat_stripped, indices, split_text) and returns: positions