docs: def render(template: typing.Union[str, Template], **kwargs):
      """
      Renders a template string using Jinja2 and the Cauldron templating
      environment.
  
      :param template:
          The string containing the template to be rendered
      :param kwargs:
          Any named arguments to pass to Jinja2 for use in rendering
      :return:
          The rendered template string
      """
  
      if not hasattr(template, 'render'):
          template = get_environment().from_string(textwrap.dedent(template))
  
      return template.render(
          cauldron_template_uid=make_template_uid(),
          **kwargs
      )