docstr: Check if input mentions has same synset relation for entity mentions
  
  Args:
      page_x:WordnetPage
      page_y:WordnetPage
  
  Returns:
      RelationType.WORDNET_SAME_SYNSET_ENTITY or RelationType.NO_RELATION_FOUND
docstr_tok: ["Check","if","input","mentions","has","same","synset","relation","for","entity","mentions","Args",":","page_x",":","WordnetPage","page_y",":","WordnetPage","Returns",":","RelationType.WORDNET_SAME_SYNSET_ENTITY","or","RelationType.NO_RELATION_FOUND"]
code: def extract_same_synset_entity(
      page_x: WordnetPage, page_y: WordnetPage
  ) -> RelationType:
      """
      Check if input mentions has same synset relation for entity mentions
  
      Args:
          page_x:WordnetPage
          page_y:WordnetPage
  
      Returns:
          RelationType.WORDNET_SAME_SYNSET_ENTITY or RelationType.NO_RELATION_FOUND
      """
      match_result = RelationType.NO_RELATION_FOUND
      th = 0
      if (
          len(
              [w for w in (page_x.head_synonyms & page_y.head_synonyms)]
          )
          > th
      ):
          match_result = RelationType.WORDNET_SAME_SYNSET
  
      return match_result
  
file_path: nlp-architect/nlp_architect/data/cdc_resources/relations/wordnet_relation_extraction.py
imports: 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.wn.wordnet_page import WordnetPage
  from nlp_architect.data.cdc_resources.relations.relation_extraction import RelationExtraction
  from nlp_architect.data.cdc_resources.relations.relation_types_enums import RelationType, OnlineOROfflineMethod
  from nlp_architect.data.cdc_resources.wordnet.wordnet_offline import WordnetOffline
  from nlp_architect.data.cdc_resources.wordnet.wordnet_online import WordnetOnline
  from nlp_architect.utils.string_utils import StringUtils
label_desc: Use image node_id 6 for calling the WordnetRelationExtraction obj's underlying member method code with example usage: obj.extract_same_synset_entity(page_x, page_y) and returns: match_result