code: def test_default():
      y = np.array([0, 1, 2, 3, 4, 2])
      expect = np.array(
          [
              [1.0, 0.0, 0.0, 0.0, 0.0],
              [0.0, 1.0, 0.0, 0.0, 0.0],
              [0.0, 0.0, 1.0, 0.0, 0.0],
              [0.0, 0.0, 0.0, 1.0, 0.0],
              [0.0, 0.0, 0.0, 0.0, 1.0],
              [0.0, 0.0, 1.0, 0.0, 0.0],
          ],
          dtype="float",
      )
      out = one_hot(y)
      np.testing.assert_array_equal(expect, out)
  
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 1 for calling a global function with example usage: test_default() without return types