def METHOD_NAME(self, *args: t.Any, **kwargs: t.Any) -> t.Any:
    """Render the template to produce a native Python type. If the
    result is a single node, its value is returned. Otherwise, the
    nodes are concatenated as strings. If the result can be parsed
    with :func:`ast.literal_eval`, the parsed value is returned.
    Otherwise, the string is returned.
    """
    ctx = self.new_context(dict(*args, **kwargs))
    try:
        return self.environment_class.concat(  # type: ignore
            self.root_render_func(ctx)
        )
    except Exception:
        return self.environment.handle_exception()