def __call__(self, context, **args):
        args = self.validate(args)
        if self.needs_context:
            if isinstance(context, Exception):
                raise context
            args[CONTEXT_ARG_NAME] = context
        return self.call(**args)
Validates argument values and checks if the function requires a
dataset/ETHPy150Open stepank/pyws/src/pyws/functions/__init__.py/Function.__call__