code: function isSemanticPredicate( element ) {
  
      const type = element.expression.type;
  
      if ( type === "semantic_and" ) return true;
      if ( type === "semantic_not" ) return true;
  
      return false;
  
  }
docs: Check if the given element's expression is of type `semantic_*`