code: def __init__(self, figure, id, style={}, **kwds):
      super().__init__(**kwds)
      self.figure = figure
      self.style = style
      self.id = id
      # self.config = {'modeBarButtons': {'pan2d': True}}
      if id == "prediction_picking":
          self.config = {
              # Graph is responsive
              "responsive": True,
              "modeBarButtonsToRemove": [
                  "zoomOut2d",
                  "zoomIn2d",
                  "resetScale2d",
                  "hoverClosestCartesian",
                  "hoverCompareCartesian",
                  "toggleSpikelines",
              ],
              "displaylogo": False,
          }
          # 'modeBarStyle': {'orientation': 'v'}, # Deprecated in Dash 1.17.0
      else:
          self.config = {
              # Graph is responsive
              "responsive": True,
              # Graph don't have select box button
              "modeBarButtonsToRemove": [
                  "lasso2d",
                  "zoomOut2d",
                  "zoomIn2d",
                  "resetScale2d",
                  "hoverClosestCartesian",
                  "hoverCompareCartesian",
                  "toggleSpikelines",
                  "select",
              ],
              "displaylogo": False,
          }
  
imports: from dash import dcc
  import re
label_desc: Use image node_id 1 to create a new MyGraph object from inherited base classes: dcc with example: obj = MyGraph(figure, id, style)