def METHOD_NAME(self, obj=None):
    """Render self.parameters as a Jinja2 template with the given object as context."""
    try:
        return {key: render_jinja2(value, {"obj": obj}) for key, value in self.parameters.items()}
    except (TemplateSyntaxError, UndefinedError) as exc:
        raise SecretParametersError(self, registry["secrets_providers"].get(self.provider), str(exc)) from exc