Resolve function arguments and call them, possibily filling from the environment

def resolve_and_call(self, func, extra_env=None):
        """ Resolve function arguments and call them, possibily filling from the environment """
        kwargs = self.resolve_parameters(func, extra_env=extra_env)
        return func(**kwargs)