code: def test_invalid_labels_1():
      y2 = np.where(y1 == 0, 2, 1)
      ada = Adaline(epochs=15, eta=0.01, random_seed=1)
  
      if sys.version_info >= (3, 0):
          objtype = "{(0, 1)}"
      else:
          objtype = "set([(0, 1)])"
  
      expect = "Labels not in %s.\nFound (1, 2)" % objtype
  
      assert_raises(AttributeError, expect, ada.fit, X, y2, {(0, 1)})
  
file_path: mlxtend/mlxtend/classifier/tests/test_adaline.py
imports: import sys
  import numpy
  from sklearn.base import clone
  from mlxtend.classifier import Adaline
  from mlxtend.data import iris_data
  from mlxtend.utils import assert_raises
label_desc: Use image node_id 1 for calling a global function with example usage: test_invalid_labels_1() without return types