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","."]
docstr: Handle callable.
docstr_tok: ["Handle","callable","."]
code: def handle_callable(cls, item, index, **kwargs):
      """Handle callable."""
      # NOTE:
      # we are calling `handle_callable` method not from 'html.DisplayItemsHandler'
      # but from 'abc.ABCDisplayItemsHandler' that returns list of byte streams
      #
      images = []
      figures = super(
          html.DisplayItemsHandler, cls
      ).handle_callable(  # pylint: disable=bad-super-call
          item, index, **kwargs
      )
      for it in figures:
          it.seek(0)
          images.append(Image(data=it.read(), format="png"))
      return images
  
imports: import typing
  from IPython.display import HTML, Image
  from plotly.basedatatypes import BaseFigure
  from deepchecks.core import check_result
  from deepchecks.core.serialization.abc import IPythonFormatter, IPythonSerializer
  from deepchecks.core.serialization.common import flatten
  from deepchecks.core.serialization.dataframe.html import DataFrameSerializer
  from .None import html
label_desc: Use image node_id 7 for calling the DisplayItemsHandler obj's underlying member method code with example usage: obj.handle_callable(cls, item, index) and returns: images