code: def init_fig(self, anim_interval: float = 1.0):
      import matplotlib.pyplot as plt  # delayed import due to matplotlib threading issue
  
      """(for derived class) Initializes matplotlib figure"""
      if self._fig_init_done:
          return False
  
      # create figure and animation
      self.figure = plt.figure(figsize=(8, 3))
      self.anim_interval = anim_interval
  
      # default color pallet
      import matplotlib.pyplot as plt  # delayed import due to matplotlib threading issue
  
      plt.set_cmap("Dark2")
      plt.rcParams["image.cmap"] = "Dark2"
  
      self._fig_init_done = True
      return True
  
file_path: tensorwatch/tensorwatch/mpl/base_mpl_plot.py
imports: from ..vis_base import VisBase
  import sys, logging
  from abc import abstractmethod
  from ..None import utils
label_desc: Use image node_id 2 for calling the BaseMplPlot obj's underlying member method code with example usage: obj.init_fig(anim_interval) and returns: True, False