code: def wordnet_dump():
      out_file = args.output
      mentions_file = args.mentions
      logger.info("Loading mentions files...")
      mentions = MentionData.read_mentions_json_to_mentions_data_list(
          mentions_file
      )
      logger.info(
          "Done loading mentions files, starting local dump creation..."
      )
      result_dump = dict()
      wordnet = WordnetOnline()
      for mention in mentions:
          page = wordnet.get_pages(mention)
          result_dump[page.orig_phrase] = page
  
      with open(out_file, "w") as out:
          json.dump(result_dump, out, default=json_dumper)
  
      logger.info(
          "Wordnet Dump Created Successfully, "
          "extracted total of %d wn pages",
          len(result_dump),
      )
      logger.info("Saving dump to file-%s", out_file)
  
file_path: nlp-architect/nlp_architect/data/cdc_resources/gen_scripts/create_wordnet_dump.py
imports: import argparse
  import json
  import logging
  from nlp_architect.common.cdc.mention_data import MentionData
  from nlp_architect.data.cdc_resources.wordnet.wordnet_online import WordnetOnline
  from nlp_architect.utils import io
  from nlp_architect.utils.io import json_dumper
label_desc: Use image node_id 1 for calling a global function with example usage: wordnet_dump() without return types