code: def rule_3(dep_rel, relation_list, text):
      """Extract term if rule 3 applies.
  
      Args:
          dep_rel (DepRelation): Dependency relation.
          relation_list (list of DepRelation): Generic relations between all tokens.
          text (str): Sentence text.
      """
      candidate = None
      if dep_rel.gov.norm_pos == POS.NN and is_subj_obj_or_mod(dep_rel):
          aspect = expand_aspect(dep_rel.gov, relation_list)
          candidate = CandidateTerm(
              aspect, dep_rel.dep, text, Polarity.UNK
          )
      return candidate
  
file_path: nlp-architect/nlp_architect/models/absa/train/rules.py
imports: from nlp_architect.models.absa.inference.data_types import Polarity
  from nlp_architect.models.absa.train.data_types import CandidateTerm, RelCategory, DepRelationTerm, POS
label_desc: Use image node_id 3 for calling a global function with example usage: rule_3(dep_rel, relation_list, text) and returns: candidate