Situational Grammar Python Validation Rules are not supported in the 5.0 parser engine (versions 5.0 and later). If you want to use this type of validation rule, use the 4.5 parser engine (versions 3.211.245 to 4.5).
This rule is similar to the Python Validation Rule but
allows access to the message grammar of the message being parsed. Using this access, it is possible to
set the optionality of a segment at parse time based on the logic in the Python code.