class_docstr: Auxiliary class to decouple display handling logic from other functionality.
class_docstr_tok: ["Auxiliary","class","to","decouple","display","handling","logic","from","other","functionality","."]
code: def handle_figure(
      cls,
      item: BaseFigure,
      index: int,
      plotly_to_image: bool = False,
      **kwargs,
  ) -> Widget:
      return (
          go.FigureWidget(data=item)
          if not plotly_to_image
          else HTML(
              value=super().handle_figure(
                  item, index, plotly_to_image, **kwargs
              )
          )
      )
  
imports: import typing
  import pandas
  import plotly.graph_objects
  from ipywidgets import HTML, Tab, VBox, Widget
  from plotly.basedatatypes import BaseFigure
  from deepchecks.core import check_result
  from deepchecks.core.serialization.abc import WidgetSerializer
  from deepchecks.core.serialization.common import normalize_widget_style
  from .None import html
label_desc: Use image node_id 5 for calling the DisplayItemsHandler obj's underlying member method code with example usage: obj.handle_figure(cls, item, index, plotly_to_image) and returns: unknown