code: def __init__(self, evaluator, template=None):
      if mistune is None:
          raise ModuleNotFoundError(
              "You need to install mistune to generate reports"
          )
  
      self.evaluator = evaluator
  
      if template is None:
          template = jinja_env().get_template(
              self.evaluator.TEMPLATE_NAME
          )
      elif isinstance(template, Path):
          template = Template(template.read_text())
      elif isinstance(template, str):
          template = Template(template)
  
      rendered = template.render(e=evaluator)
  
      if mistune.__version__[0] == "2":
          md = mistune.create_markdown()
      else:
          md = mistune.Markdown()
  
      self.rendered = md(rendered)
  
file_path: sklearn-evaluation/src/sklearn_evaluation/report/report.py
imports: from jinja2 import Template
  from pathlib import Path
  from sklearn_evaluation.telemetry import SKLearnEvaluationLogger
  from sklearn_evaluation.report.util import jinja_env
label_desc: Use image node_id 1 to create a new Report object  with example: obj = Report(evaluator, template)