code: def main():
      from cp_ner.extraction.constants import BaseStructureMarker
  
      structure_marker = BaseStructureMarker()
      spot_asoc = [
          {"span": "analyzer", "label": "generic", "asoc": []},
          {"span": "`` Amorph ''", "label": "method", "asoc": []},
      ]
  
      spot_asoc_noiser = SpotAsocNoiser(
          spot_noise_ratio=0.5,
          asoc_noise_ratio=0.5,
      )
      spot_asoc_noiser.add_noise(
          spot_asoc=spot_asoc,
          spot_label_list=["A", "B", "C"],
          asoc_label_list=["D", "E", "F"],
      )
      target = convert_spot_asoc(
          spot_asoc_instance=spot_asoc, structure_maker=structure_marker
      )
  
      target = convert_spot_asoc(
          spot_asoc_instance=spot_asoc, structure_maker=structure_marker
      )
  
      replace_map = {
          "<extra_id_0>": " ( ",
          "<extra_id_1>": " ) ",
          "<extra_id_5>": ":",
      }
      from nltk.tree import Tree
  
      for old, new in replace_map.items():
          target = target.replace(old, new)
      print(target)
      Tree.fromstring(target).pretty_print()
  
file_path: DeepKE/src/deepke/name_entity_re/cross/extraction/noiser/spot_asoc_noiser.py
imports: from ...extraction import constants
  from dataclasses import dataclass
  import numpy
  from ...extraction.utils import *
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types