code: def test_multidim_array():
      y = np.array([[0], [1], [2], [3], [4], [2]])
      with pytest.raises(AttributeError):
          one_hot(y)
  
file_path: mlxtend/mlxtend/preprocessing/tests/test_onehot.py
imports: import numpy
  import pytest
  from mlxtend.preprocessing import one_hot
label_desc: Use image node_id 5 for calling a global function with example usage: test_multidim_array() without return types