code: def test_oneclass():
      np.testing.assert_array_equal(
          one_hot([0]), np.array([[0.0]], dtype="float")
      )
  
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 6 for calling a global function with example usage: test_oneclass() without return types