code: def test_confusion_matrix():
      plot.confusion_matrix(y_test, y_pred, target_names)
  
imports: from functools import partial
  import sys
  from unittest.mock import Mock
  import numpy
  from matplotlib.testing.decorators import image_comparison
  from sklearn_evaluation import plot
label_desc: Use image node_id 1 for calling a global function with example usage: test_confusion_matrix() without return types