code: def function(self, rule, args, **kwargs):
          
          fname = rule.function
          try:
              return self.functions[fname](args)
          except KeyError:
              raise FilteringRuleException("Invalid function name '{}'".format(fname))
docs: Implementation of :py:func:`pynspect.traversers.RuleTreeTraverser.function` interface.