docstr: Add model interpreter for classification
  
  Args:
      mode (str): Model Model - classification/regression model
      class_stats (dict): A dictionary maps the label to its aggregated statistics
      total_count (int): The total number of explanations to generate the statistics
      stats_type (str): The defined stats_type for statistical analysis
      k (int): The k value of the defined stats_type
      top (int): the number of top explanation to display
      notes(str): text to explain the block
code: def draw_model_interpreter(
      self,
      notes: str,
      *,
      mode: str,
      class_stats: dict,
      total_count: int,
      stats_type: str,
      k: int,
      top: int = 15,
  ):
      """
      Add model interpreter for classification
  
      Args:
          mode (str): Model Model - classification/regression model
          class_stats (dict): A dictionary maps the label to its aggregated statistics
          total_count (int): The total number of explanations to generate the statistics
          stats_type (str): The defined stats_type for statistical analysis
          k (int): The k value of the defined stats_type
          top (int): the number of top explanation to display
          notes(str): text to explain the block
      """
      from xai.graphs import graph_generator
  
      self.html.article[-1].items.append(
          self.html.add_paragraph(text=notes)
      )
      self.html.article[-1].items.append(
          self.html.add_paragraph(
              text="Statistical type: %s with K value: %d"
              % (stats_type, k)
          )
      )
      for _class, _explanation_ranking in class_stats.items():
          if mode == MODE.CLASSIFICATION:
              title = "Interpretation for Class %s" % _class
          else:
              title = "Interpretation for Regression"
          self.html.article[-1].items.append(
              self.html.add_paragraph(text=title, style="BI")
          )
          image_path = "%s/model_interpreter_%s.png" % (
              self.figure_path,
              _class,
          )
          importance_ranking = [
              (key, value)
              for key, value in _explanation_ranking.items()
          ][:top]
          image_path = graph_generator.FeatureImportance(
              figure_path=image_path,
              data=importance_ranking,
              title=title,
          ).draw()
          self.html.article[-1].items.append(
              self.html.add_image(src=image_path, alt=title)
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  import os
  import tempfile
  import warnings
  import shutil
  from typing import Tuple, Dict, List
  import numpy
  from xai import MODE
  from xai.data.explorer import CategoricalStats, NumericalStats, TextStats, DatetimeStats
  from xai.formatter.contents import Header, Title, SectionTitle
  from xai.formatter.hypertext_markup.publisher import CustomHtml, Div
  from xai.formatter.report.section import OverviewSection, DetailSection
  from xai.formatter.writer import Writer
label_desc: Use image node_id 29 for calling the HtmlWriter obj's underlying member method code with example usage: obj.draw_model_interpreter(notes) without return types