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
  ) -> str:
      """Handle display map instance item."""
      template = textwrap.dedent(
          """
              <details>
                  <summary><strong>{name}</strong></summary>
                  <div style="
                      display: flex;
                      flex-direction: column;
                      width: 100%;
                      padding: 1.5rem;
                  ">
                  {content}
                  </div>
              </details>
          """
      )
      return "".join(
          [
              template.format(
                  name=k,
                  content="".join(
                      cls.handle_display(
                          v,
                          include_header=False,
                          include_trailing_link=False,
                          **kwargs,
                      )
                  ),
              )
              for k, v in item.items()
          ]
      )
  
imports: import textwrap
  import typing
  from plotly.basedatatypes import BaseFigure
  from plotly.io import to_html
  from typing_extensions import Literal
  from deepchecks.core import check_result
  from deepchecks.core.resources import requirejs_script
  from deepchecks.core.serialization.abc import ABCDisplayItemsHandler, HtmlSerializer
  from deepchecks.core.serialization.common import aggregate_conditions, form_output_anchor, plotlyjs_script
  from deepchecks.core.serialization.dataframe.html import DataFrameSerializer
  from deepchecks.utils.html import imagetag, linktag
label_desc: Use image node_id 9 for calling the DisplayItemsHandler obj's underlying member method code with example usage: obj.handle_display_map(cls, item, index) and returns: str