code: def __init__(self, e):
      if not isinstance(e, Explanation):
          emsg = "SimpleListVisualizer can only visualize Explanation objects!"
          raise TypeError(emsg)
  
      # build the json data
      features = {}
      for i in filter(
          lambda j: e.effects[j] != 0, range(len(e.data.group_names))
      ):
          features[i] = {
              "effect": e.effects[i],
              "value": e.instance.group_display_values[i],
          }
      self.data = {
          "outNames": e.model.out_names,
          "base_value": e.base_value,
          "link": str(e.link),
          "featureNames": e.data.group_names,
          "features": features,
          "plot_cmap": e.plot_cmap.plot_cmap,
      }
  
imports: import base64
  import json
  import os
  import random
  import re
  import string
  import warnings
  from collections.abc import Sequence
  import numpy
  import pandas
  import scipy.sparse
  from ..plots._force_matplotlib import draw_additive_plot
  from ..utils import hclust_ordering
  from ..utils._exceptions import DimensionError
  from ..utils._legacy import Data, DenseData, Instance, Link, Model, convert_to_link
  from ._labels import labels
label_desc: Use image node_id 1 to create a new SimpleListVisualizer object from inherited base classes: BaseVisualizer with example: obj = SimpleListVisualizer(e)