code: def render_template(template_file: str, **kwargs: Any) -> str:
      """
      Simple render template based on named parameters
  
      :param template_file: The template file location
      :kwargs: Named parameters to use when rendering the template
      :return: Rendered template
      """
      template = jinja2.Template(open(template_file).read())
      return template.render(kwargs)
  
file_path: superset/RELEASING/generate_email.py
imports: from typing import Any
  from click.core import Context
label_desc: Use image node_id 2 for calling a global function with example usage: render_template(template_file) and returns: template