code: def _merge_tables(d1, d2):
      """
      Merge dictionaries
      Args:
          d1 (dict): first dict to merge
          d2 (dict): second dict to merge
      """
      for key, l in d2.items():
          if key in d1:
              for item in l:
                  if item not in d1[key]:
                      d1[key].append(item)
          else:
              d1[key] = l
      return d1
  
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 3 for calling a global function with example usage: _merge_tables(d1, d2) and returns: d1