docstr: Add information of feature importance to the report.
  
  Args:
      notes(str): Explain the block
      importance_ranking(:list of :list): a list of 2-item lists,
                                  item[0]: score, item[1] feature_name
      importance_threshold(float): threshold for displaying the feature
                                  name and score in tables
      maximum_number_feature(int): maximum number of features shown in bar-chart diagram
code: def draw_feature_importance(
      self,
      notes: str,
      *,
      importance_ranking: List[List],
      importance_threshold: float,
      maximum_number_feature=20,
  ):
      """
      Add information of feature importance to the report.
  
      Args:
          notes(str): Explain the block
          importance_ranking(:list of :list): a list of 2-item lists,
                                      item[0]: score, item[1] feature_name
          importance_threshold(float): threshold for displaying the feature
                                      name and score in tables
          maximum_number_feature(int): maximum number of features shown in bar-chart diagram
      """
      from xai.graphs import graph_generator
  
      # -- Draw Content --
      if not (notes is None):
          modified_notes = notes
      elif maximum_number_feature < len(importance_ranking):
          modified_notes = (
              "The figure below shows the top %s important features for the trained model."
              % maximum_number_feature
          )
      else:
          modified_notes = "The figure below shows importance ranking for all features from the trained model."
      self.html.article[-1].items.append(
          self.html.add_paragraph(text=modified_notes)
      )
  
      image_path = "%s/feature_importance.png" % self.figure_path
      image_path = graph_generator.FeatureImportance(
          figure_path=image_path,
          data=importance_ranking,
          title="feature_importance",
      ).draw(limit_length=maximum_number_feature)
  
      self.html.article[-1].items.append(
          self.html.add_image(src=image_path, alt="feature_importance")
      )
  
      self.html.article[-1].items.append(
          self.html.add_paragraph(
              text="The features which have an importance score larger "
              "than %s are listed in the below table."
              % importance_threshold
          )
      )
  
      header = ["Feature", "Importance"]
      data = []
      for feature_name, importance in importance_ranking:
          if float(importance) < importance_threshold:
              break
          data.append([feature_name, round(importance, 10)])
      self.html.article[-1].items.append(
          self.html.add_table(header=header, data=data)
      )
  
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 25 for calling the HtmlWriter obj's underlying member method code with example usage: obj.draw_feature_importance(notes) without return types