code: def get_template(name: str) -> Template:
      try:
          return get_environment().get_template(name)
      except TemplateNotFound as e:
          raise TemplateNotFound(
              f"Unable to find {name} in dask.widgets.TEMPLATE_PATHS {TEMPLATE_PATHS}"
          ) from e
  
file_path: dask/dask/widgets/widgets.py
imports: from __future__ import annotations
  import datetime
  import html
  import os.path
  from jinja2 import Environment, FileSystemLoader, Template
  from jinja2.exceptions import TemplateNotFound
  from dask.utils import format_bytes, format_time, format_time_ago, key_split, typename
label_desc: Use image node_id 2 for calling a global function with example usage: get_template(name) and returns: get_environment