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 display map instance item.
docstr_tok: ["Handle","display","map","instance","item","."]
code: def handle_display_map(
      cls, item: "check_types.DisplayMap", index: int, **kwargs
  ) -> t.Dict[str, t.Any]:
      """Handle display map instance item."""
      return {
          "type": "displaymap",
          "payload": {
              k: cls.handle_display(v, **kwargs)
              for k, v in item.items()
          },
      }
  
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 5 for calling the DisplayItemsHandler obj's underlying member method code with example usage: obj.handle_display_map(cls, item, index) and returns: dict