code: def assert_class_performance_display(
      xaxis,  # classes
      yaxis,  # values
      metrics=("Recall", "Precision"),
  ):
      pairs = (
          (dataset, metric)
          for dataset in ("Train", "Test")
          for metric in metrics
      )
      return contains_exactly(
          *[
              all_of(
                  instance_of(Histogram),
                  has_property("name", equal_to(dataset)),
                  has_property(
                      "hovertemplate",
                      contains_string(f"Metric={metric}"),
                  ),
                  has_property("x", xaxis[index]),
                  has_property("y", yaxis[index]),
              )
              for index, (dataset, metric) in enumerate(pairs)
          ]
      )
  
imports: import typing
  import matplotlib.pyplot
  import numpy
  import pandas
  import plotly.express
  from hamcrest import *
  from hamcrest.core.base_matcher import BaseMatcher
  from hamcrest.core.matcher import Matcher
  from plotly.graph_objects import Histogram
  from deepchecks.core import BaseSuite
  from deepchecks.core.check_result import CheckFailure, CheckResult, DisplayMap
  from deepchecks.core.checks import BaseCheck, SingleDatasetBaseCheck
  from deepchecks.core.condition import ConditionCategory, ConditionResult
  from deepchecks.core.errors import DeepchecksBaseError
  from deepchecks.core.serialization.abc import HTMLFormatter, IPythonDisplayFormatter, JPEGFormatter, JSONFormatter, MarkdownFormatter, MimeBundleFormatter, PNGFormatter
  from deepchecks.core.suite import SuiteResult
label_desc: Use image node_id 5 for calling a global function with example usage: assert_class_performance_display(xaxis, yaxis, metrics) and returns: contains_exactly