code: def test_dump(tmp_directory, y):
      y_true, y_pred = y
      cm = plot.ClassificationReport.from_raw_data(y_true, y_pred)
  
      cm.dump("cr.json")
      cm2 = plot.ClassificationReport.from_dump("cr.json")
      assert cm._get_data() == cm2._get_data()
  
file_path: sklearn-evaluation/tests/test_classification_report.py
imports: import pytest
  import numpy
  from sklearn_evaluation import plot, __version__
  import warnings
label_desc: Use image node_id 3 for calling a global function with example usage: test_dump(tmp_directory, y) without return types