code: def test_labels_iris():
      X = iris_data.data
      y = iris_data.target
      _, _, y_train, y_test = train_test_split(
          X, y, test_size=0.3, random_state=42
      )
      plot.target_analysis(
          y_train, y_test, labels=["Setosa", "Versicolour", "Virginica"]
      )
  
file_path: sklearn-evaluation/tests/test_target_analysis.py
imports: import pytest
  import numpy
  import pandas
  from sklearn import datasets
  from matplotlib.testing.decorators import image_comparison
  from sklearn.model_selection import train_test_split
  from sklearn_evaluation import plot
label_desc: Use image node_id 8 for calling a global function with example usage: test_labels_iris() without return types