code: def test_one_hot():
      from lasagne.utils import one_hot
  
      a = np.random.randint(0, 10, 20)
      b = np.zeros((a.size, a.max() + 1))
      b[np.arange(a.size), a] = 1
  
      result = one_hot(a).eval()
      assert (result == b).all()
  
imports: from mock import Mock
  import pytest
  import numpy
  import theano
  import theano.tensor
label_desc: Use image node_id 5 for calling a global function with example usage: test_one_hot() without return types