code: def is_subj_obj_or_mod(rt):
      return any(
          rt.rel in cat.value
          for cat in (
              RelCategory.SUBJ,
              RelCategory.OBJ,
              RelCategory.MOD,
          )
      )
  
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 7 for calling a global function with example usage: is_subj_obj_or_mod(rt) and returns: any