code: def _insert_new_term_to_table(term, curr_table):
      """
      Insert term to table of lists.
      Args:
          term (term): term to be inserted
          curr_table (dict): input table
      """
      table_key_word = str(term)
      if table_key_word:
          if (
              table_key_word in curr_table
              and term not in curr_table[table_key_word]
          ):
              curr_table[table_key_word].append(term)
          else:
              curr_table[table_key_word] = [term]
  
imports: import copy
  import re
  import sys
  from os import PathLike
  from tqdm import tqdm
  from nlp_architect.models.absa import TRAIN_LEXICONS, LEXICONS_OUT
  from nlp_architect.models.absa import GENERIC_OP_LEX
  from nlp_architect.models.absa.inference.data_types import Polarity
  from nlp_architect.models.absa.train.data_types import AspectTerm, DepRelation, DepRelationTerm, LoadOpinionStopLists, LoadAspectStopLists, OpinionTerm, QualifiedTerm
  from nlp_architect.models.absa.train.rules import rule_1, rule_2, rule_3, rule_4, rule_5, rule_6
  from nlp_architect.models.absa.utils import _load_parsed_docs_from_dir, _write_final_opinion_lex, _load_lex_as_list_from_csv, read_generic_lex_from_file
label_desc: Use image node_id 4 for calling a global function with example usage: _insert_new_term_to_table(term, curr_table) without return types