code: def initjs():
      """Initialize the necessary javascript libraries for interactive force plots.
  
      Run this only in a notebook environment with IPython installed.
      """
      assert (
          have_ipython
      ), "IPython must be installed to use initjs()! Run `pip install ipython` and then restart shap."
  
      logo_path = os.path.join(
          os.path.split(__file__)[0], "resources", "logoSmallGray.png"
      )
      with open(logo_path, "rb") as f:
          logo_data = f.read()
      logo_data = base64.b64encode(logo_data).decode("utf-8")
      display(
          HTML(
              f"<div align='center'><img src='data:image/png;base64,{logo_data}' /></div>"
              + getjs()
          )
      )
  
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 3 for calling a global function with example usage: initjs() without return types