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: t.Callable, index: int, **kwargs
  ) -> t.Dict[str, t.Any]:
      """Handle callable."""
      return {
          "type": "images",
          "payload": [
              base64.b64encode(buffer.read()).decode("ascii")
              for buffer in super().handle_callable(
                  item, index, **kwargs
              )
          ],
      }
  
imports: import base64
  import typing
  import pandas
  from pandas.io.formats.style import Styler
  from plotly.basedatatypes import BaseFigure
  from typing_extensions import TypedDict
  from deepchecks.core import check_result
  from deepchecks.core import checks
  from deepchecks.core.serialization.abc import ABCDisplayItemsHandler, JsonSerializer
  from deepchecks.core.serialization.common import aggregate_conditions, normalize_value
label_desc: Use image node_id 3 for calling the DisplayItemsHandler obj's underlying member method code with example usage: obj.handle_callable(cls, item, index) and returns: dict