code: def _create_report(estimator, data):
      html_template = _get_estimator_template(estimator)
      overlay, image = _define_overlay(estimator)
      embeded_images = (
          [_embed_img(i) for i in image]
          if isinstance(image, list)
          else _embed_img(image)
      )
      parameters = _str_params(estimator.get_params())
      docstring = estimator.__doc__
      snippet = docstring.partition("Parameters\n    ----------\n")[0]
      return _update_template(
          title=estimator.__class__.__name__,
          docstring=snippet,
          content=embeded_images,
          overlay=_embed_img(overlay),
          parameters=parameters,
          data=data,
          template_name=html_template,
      )
  
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 7 for calling a global function with example usage: _create_report(estimator, data) and returns: _update_template