code: def test_invalid_target():
      """
      A value error should be raised on invalid train or test target
      """
      y_valid = np.random.randint(2, size=100)
      y_invalid = np.random.uniform(size=100)
      with pytest.raises(TypeError):
          plot.target_analysis(y_invalid)
      with pytest.raises(TypeError):
          plot.target_analysis(y_valid, y_invalid)
  
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 1 for calling a global function with example usage: test_invalid_target() without return types