code: def add_page(search_page, phrase):
      try:
          if search_page is not None:
              if phrase not in result_dump:
                  result_dump[phrase] = []
                  result_dump[phrase].append(search_page)
              else:
                  pages = result_dump[phrase]
                  for page in pages:
                      if page.pageid == search_page.pageid:
                          return
  
                  result_dump[phrase].append(search_page)
  
              logger.info("page-%s added", str(search_page))
      except Exception:
          logger.error(
              "could not extract wiki info from phrase-%s",
              search_page.orig_phrase,
          )
  
file_path: nlp-architect/nlp_architect/data/cdc_resources/gen_scripts/create_wiki_dump.py
imports: import argparse
  import json
  import logging
  from nlp_architect.data.cdc_resources.relations.relation_types_enums import WikipediaSearchMethod
  from nlp_architect.data.cdc_resources.relations.wikipedia_relation_extraction import WikipediaRelationExtraction
  from nlp_architect.models.cross_doc_coref.system.cdc_utils import load_mentions_vocab_from_files
  from nlp_architect.utils import io
  from nlp_architect.utils.io import json_dumper
label_desc: Use image node_id 2 for calling a global function with example usage: add_page(search_page, phrase) without return types