class_docstr: Examples
  --------
  .. plot:: ../examples/ClassificationReport.py
code: def _from_data(cls, target_names, matrix, keys):
      return cls(
          y_true=None,
          y_pred=None,
          target_names=target_names,
          matrix=np.array(matrix),
          keys=keys,
      )
  
imports: from warnings import warn
  from pathlib import Path
  import json
  import numpy
  import matplotlib.pyplot
  from sklearn.metrics import classification_report
  from ..telemetry import SKLearnEvaluationLogger
  from sklearn_evaluation.plot.classification import _add_values_to_matrix
  from sklearn_evaluation.util import default_heatmap
  from sklearn_evaluation.plot.plot import Plot
  from sklearn_evaluation.plot import _matrix
  from sklearn_evaluation import __version__
  from ploomber_core.exceptions import modify_exceptions
label_desc: Use image node_id 7 for calling the ClassificationReport obj's underlying member method code with example usage: obj._from_data(cls, target_names, matrix, keys) and returns: cls