code: def test_widgets():
      template = get_template("example.html.j2")
      assert isinstance(template, jinja2.Template)
      rendered = template.render(foo="bar")
      assert "Hello bar" in rendered
  
file_path: dask/dask/widgets/tests/test_widgets.py
imports: from __future__ import annotations
  import os.path
  import pytest
  from dask.utils import format_bytes
  from dask.widgets import FILTERS, TEMPLATE_PATHS, get_environment, get_template
label_desc: Use image node_id 2 for calling a global function with example usage: test_widgets() without return types