code: def get_page_from_result_v1(self, phrase, result, result_id):
      if result_id != 0 and result is not None:
          relations = None
          result_source = result["_source"]
          result_score = result["_score"]
          if result_source is not None:
              title = result_source["title"]
              relations_source = result_source["relations"]
  
              if relations_source is not None:
                  is_part = relations_source["isPartName"]
                  is_disambig = relations_source["isDisambiguation"]
  
                  disambig_links = self.safe_extract_field_from_dict(
                      "disambiguationLinks", relations_source
                  )
                  disambig_links_norm = (
                      self.safe_extract_field_from_dict(
                          "disambiguationLinksNorm", relations_source
                      )
                  )
                  categories = self.safe_extract_field_from_dict(
                      "categories", relations_source
                  )
                  categories_norm = self.safe_extract_field_from_dict(
                      "categoriesNorm", relations_source
                  )
                  title_parent = self.safe_extract_field_from_dict(
                      "titleParenthesis", relations_source
                  )
                  title_parent_norm = self.safe_extract_field_from_dict(
                      "titleParenthesisNorm", relations_source
                  )
                  be_comp = self.safe_extract_field_from_dict(
                      "beCompRelations", relations_source
                  )
                  be_comp_norm = self.safe_extract_field_from_dict(
                      "beCompRelationsNorm", relations_source
                  )
  
                  relations = WikipediaPageExtractedRelations(
                      is_part,
                      is_disambig,
                      title_parent,
                      disambig_links,
                      categories,
                      None,
                      be_comp,
                      disambig_links_norm,
                      categories_norm,
                      None,
                      title_parent_norm,
                      be_comp_norm,
                  )
  
          return WikipediaPage(
              phrase,
              None,
              title,
              None,
              result_score,
              result_id,
              None,
              relations,
          )
  
      return WikipediaPage()
  
file_path: nlp-architect/nlp_architect/data/cdc_resources/wikipedia/wiki_elastic.py
imports: import logging
  import sys
  import traceback
  import requests
  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
label_desc: Use image node_id 7 for calling the WikiElastic obj's underlying member method code with example usage: obj.get_page_from_result_v1(phrase, result, result_id) and returns: WikipediaPage, WikipediaPage