code: def _get_estimator_template(estimator):
      """Return the HTML template to use for a given estimator \
      if a specific template was defined in ESTIMATOR_TEMPLATES, \
      otherwise return the default template.
  
      Parameters
      ----------
      estimator : object instance of BaseEstimator
          The object we wish to retrieve template of.
  
      Returns
      -------
      template : str
          Name of the template file to use.
  
      """
      if estimator.__class__.__name__ in ESTIMATOR_TEMPLATES:
          return ESTIMATOR_TEMPLATES[estimator.__class__.__name__]
      else:
          return ESTIMATOR_TEMPLATES["default"]
  
imports: import copy
  import os
  import warnings
  from pathlib import Path
  from string import Template
  from nilearn.externals import tempita
  from nilearn.plotting.html_document import HTMLDocument
  from nilearn.reporting.utils import figure_to_svg_base64
label_desc: Use image node_id 1 for calling a global function with example usage: _get_estimator_template(estimator) and returns: ESTIMATOR_TEMPLATES, ESTIMATOR_TEMPLATES