docstr: Base Class Check if Sub class support given relation before executing the sub class
  
  Args:
      mention_x: MentionDataLight
      mention_y: MentionDataLight
      relation: RelationType
  
  Returns:
      RelationType: relation in case mentions has given relation and
          RelationType.NO_RELATION_FOUND otherwise
code: def extract_relation(
      self,
      mention_x: MentionDataLight,
      mention_y: MentionDataLight,
      relation: RelationType,
  ) -> RelationType:
      """
      Base Class Check if Sub class support given relation before executing the sub class
  
      Args:
          mention_x: MentionDataLight
          mention_y: MentionDataLight
          relation: RelationType
  
      Returns:
          RelationType: relation in case mentions has given relation and
              RelationType.NO_RELATION_FOUND otherwise
      """
      ret_relation = RelationType.NO_RELATION_FOUND
      if relation in self.get_supported_relations():
          ret_relation = self.extract_sub_relations(
              mention_x, mention_y, relation
          )
      return ret_relation
  
file_path: nlp-architect/nlp_architect/data/cdc_resources/relations/relation_extraction.py
imports: from typing import List
  from nlp_architect.common.cdc.mention_data import MentionDataLight
  from nlp_architect.data.cdc_resources.relations.relation_types_enums import RelationType
label_desc: Use image node_id 2 for calling the RelationExtraction obj's underlying member method code with example usage: obj.extract_relation(mention_x, mention_y, relation) and returns: ret_relation