code: def extract_json_values(json_pages):
      pages = set()
      for json_page in json_pages:
          description = json_page.get("description", None)
          pageid = int(json_page.get("pageid", 0))
          orig_phrase = json_page.get("orig_phrase", None)
          orig_phrase_norm = json_page.get("orig_phrase_norm", None)
          wiki_title = json_page.get("wiki_title", None)
          wiki_title_norm = json_page.get("wiki_title_norm", None)
  
          relations_json = json_page.get("relations", None)
          rel_is_part_name = relations_json.get("isPartName", None)
          rel_is_disambiguation = relations_json.get(
              "isDisambiguation", None
          )
          rel_disambiguation = relations_json.get(
              "disambiguationLinks", None
          )
          rel_disambiguation_norm = relations_json.get(
              "disambiguationLinksNorm", None
          )
          rel_parenthesis = relations_json.get("titleParenthesis", None)
          rel_parenthesis_norm = relations_json.get(
              "titleParenthesisNorm", None
          )
          rel_categories = relations_json.get("categories", None)
          rel_categories_norm = relations_json.get(
              "categoriesNorm", None
          )
          rel_be_comp = relations_json.get("beCompRelations", None)
          rel_be_comp_norm = relations_json.get(
              "beCompRelationsNorm", None
          )
          rel_aliases = relations_json.get("aliases", None)
          rel_aliases_norm = relations_json.get("aliasesNorm", None)
  
          relations = WikipediaPageExtractedRelations(
              rel_is_part_name,
              rel_is_disambiguation,
              rel_parenthesis,
              rel_disambiguation,
              rel_categories,
              rel_aliases,
              rel_be_comp,
              rel_disambiguation_norm,
              rel_categories_norm,
              rel_aliases_norm,
              rel_parenthesis_norm,
              rel_be_comp_norm,
          )
  
          page = WikipediaPage(
              orig_phrase,
              orig_phrase_norm,
              wiki_title,
              wiki_title_norm,
              0,
              pageid,
              description,
              relations,
          )
          pages.add(WikipediaSearchPageResult(orig_phrase, page))
  
      return pages
  
file_path: nlp-architect/nlp_architect/data/cdc_resources/wikipedia/wiki_offline.py
imports: import logging
  from os import listdir
  from os.path import join, isfile
  from nlp_architect.data.cdc_resources.data_types.wiki.wikipedia_page import WikipediaPage
  from nlp_architect.data.cdc_resources.data_types.wiki.wikipedia_page_extracted_relations import WikipediaPageExtractedRelations
  from nlp_architect.data.cdc_resources.wikipedia.wiki_search_page_result import WikipediaSearchPageResult
  from nlp_architect.utils.io import load_json_file
label_desc: Use image node_id 3 for calling the WikiOffline obj's underlying member method code with example usage: obj.extract_json_values(json_pages) and returns: pages