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.Tuple[str, "WBValue"]:
      """Handle callable."""
      try:
          import PIL.Image as pilimage
      except ImportError as error:
          raise ImportError(
              "Wandb CheckResultSerializer requires the PIL package "
              'to process matplot figures. To get it, run "pip install pillow".'
          ) from error
      else:
          images = super().handle_callable(item, index, **kwargs)
          image = concatv_images(
              [pilimage.open(buffer) for buffer in images]
          )
          return (f"item-{index}-figure", wandb.Image(image))
  
imports: import typing
  from collections import OrderedDict
  import pandas
  from pandas.io.formats.style import Styler
  from plotly.basedatatypes import BaseFigure
  from deepchecks.core import check_result
  from deepchecks.core.serialization.abc import ABCDisplayItemsHandler, WandbSerializer
  from deepchecks.core.serialization.common import aggregate_conditions, concatv_images, flatten, normalize_value, prettify
  from deepchecks.utils.wandb_utils import WANDB_INSTALLATION_CMD
label_desc: Use image node_id 4 for calling the DisplayItemsHandler obj's underlying member method code with example usage: obj.handle_callable(cls, item, index) and returns: str, index, str,  wandb