code: def get_html_template(template_name):
      """Get an HTML file from package data."""
      template_path = os.path.join(
          os.path.dirname(__file__), "data", "html", template_name
      )
      with open(template_path, "rb") as f:
          return Template(f.read().decode("utf-8"))
  
file_path: nilearn/nilearn/plotting/js_plotting_utils.py
imports: import base64
  import os
  import warnings
  from string import Template
  import matplotlib
  import matplotlib.pyplot
  import numpy
  from nilearn.plotting.html_document import HTMLDocument, set_max_img_views_before_warning
  from ..None import surface
  from .._utils.extmath import fast_abs_percentile
  from .._utils.param_validation import check_threshold
label_desc: Use image node_id 2 for calling a global function with example usage: get_html_template(template_name) and returns: Template