code: def render_template_string(source: str, **context: t.Any) -> str:
      """Render a template from the given source string with the given
      context.
  
      :param source: The source code of the template to render.
      :param context: The variables to make available in the template.
      """
      app = current_app._get_current_object()  # type: ignore[attr-defined]
      template = app.jinja_env.from_string(source)
      return _render(app, template, context)
  
imports: from __future__ import annotations
  import typing
  from jinja2 import BaseLoader
  from jinja2 import Environment
  from jinja2 import Template
  from jinja2 import TemplateNotFound
  from .globals import _cv_app
  from .globals import _cv_request
  from .globals import current_app
  from .globals import request
  from .helpers import stream_with_context
  from .signals import before_render_template
  from .signals import template_rendered
label_desc: Use image node_id 4 for calling a global function with example usage: render_template_string(source) and returns: _render