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