code: def template(template_name: str) -> jinja2.Template:
      """Get the template object given the name.
  
      Args:
        template_name: The name of the template file (.html)
  
      Returns:
        The jinja2 environment.
  
      """
      return jinja2_env.get_template(template_name)
  
imports: import shutil
  from pathlib import Path
  import jinja2
  from ydata_profiling.config import Settings
  from ydata_profiling.report.formatters import fmt, fmt_badge, fmt_numeric, fmt_percent
label_desc: Use image node_id 1 for calling a global function with example usage: template(template_name) and returns: jinja2_env