code: def find_bracket_position(generated_text, _type_start, _type_end):
      bracket_position = {_type_start: list(), _type_end: list()}
      for index, char in enumerate(generated_text):
          if char in bracket_position:
              bracket_position[char] += [index]
      return bracket_position
  
file_path: DeepKE/src/deepke/name_entity_re/cross/seq2seq/constraint_decoder/constraint_decoder.py
imports: from collections import defaultdict
  import os
  from typing import List
label_desc: Use image node_id 2 for calling a global function with example usage: find_bracket_position(generated_text, _type_start, _type_end) and returns: bracket_position