docstr: check if both phrases refers to time or date
  
  Returns:
      bool
docstr_tok: ["check","if","both","phrases","refers","to","time","or","date","Returns",":","bool"]
code: def is_both_data_or_time(
      mention1: MentionDataLight, mention2: MentionDataLight
  ) -> bool:
      """
      check if both phrases refers to time or date
  
      Returns:
          bool
      """
      mention1_ner = mention1.mention_ner
      mention2_ner = mention2.mention_ner
  
      if mention1_ner is None:
          _, _, _, mention1_ner = StringUtils.find_head_lemma_pos_ner(
              mention1.tokens_str
          )
      if mention2_ner is None:
          _, _, _, mention2_ner = StringUtils.find_head_lemma_pos_ner(
              mention2.tokens_str
          )
  
      is1_time_or_data = (
          "DATE" in mention1_ner or "TIME" in mention1_ner
      )
      is2_time_or_data = (
          "DATE" in mention2_ner or "TIME" in mention2_ner
      )
  
      result = False
      if is1_time_or_data and is2_time_or_data:
          result = True
  
      return result
  
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 14 for calling the WikipediaRelationExtraction obj's underlying member method code with example usage: obj.is_both_data_or_time(mention1, mention2) and returns: result