docstr: Check if input mentions has aliases relation
  
  Args:
      pages1: WikipediaPages
      pages2: WikipediaPage
      titles1: Set[str]
      titles2: Set[str]
  Returns:
      RelationType.WIKIPEDIA_ALIASES or RelationType.NO_RELATION_FOUND
docstr_tok: ["Check","if","input","mentions","has","aliases","relation","Args",":","pages1",":","WikipediaPages","pages2",":","WikipediaPage","titles1",":","Set","[","str","]","titles2",":","Set","[","str","]","Returns",":","RelationType.WIKIPEDIA_ALIASES","or","RelationType.NO_RELATION_FOUND"]
code: def extract_aliases(
      pages1: WikipediaPages,
      pages2: WikipediaPages,
      titles1: Set[str],
      titles2: Set[str],
  ) -> RelationType:
      """
      Check if input mentions has aliases relation
  
      Args:
          pages1: WikipediaPages
          pages2: WikipediaPage
          titles1: Set[str]
          titles2: Set[str]
      Returns:
          RelationType.WIKIPEDIA_ALIASES or RelationType.NO_RELATION_FOUND
      """
      relation = RelationType.NO_RELATION_FOUND
      if bool(pages1.get_and_set_all_aliases() & titles2):
          relation = RelationType.WIKIPEDIA_ALIASES
      elif bool(pages2.get_and_set_all_aliases() & titles1):
          relation = RelationType.WIKIPEDIA_ALIASES
      return relation
  
imports: from __future__ import division
  import logging
  import os
  from typing import Set, List
  from nlp_architect.common.cdc.mention_data import MentionDataLight
  from nlp_architect.data.cdc_resources.data_types.wiki.wikipedia_pages import WikipediaPages
  from nlp_architect.data.cdc_resources.relations.relation_extraction import RelationExtraction
  from nlp_architect.data.cdc_resources.relations.relation_types_enums import RelationType, WikipediaSearchMethod
  from nlp_architect.data.cdc_resources.wikipedia.wiki_elastic import WikiElastic
  from nlp_architect.data.cdc_resources.wikipedia.wiki_offline import WikiOffline
  from nlp_architect.data.cdc_resources.wikipedia.wiki_online import WikiOnline
  from nlp_architect.utils.string_utils import StringUtils
label_desc: Use image node_id 9 for calling the WikipediaRelationExtraction obj's underlying member method code with example usage: obj.extract_aliases(pages1, pages2, titles1, titles2) and returns: relation