code: def one_hot(input):
      outp = np.zeros([batch_size, num_classes], dtype=np.int32)
      for i in range(batch_size):
          outp[i, int(input[i])] = 1
      return outp
  
imports: from functools import partial
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.types
  from test_utils import check_batch
  from nose_utils import raises
  import numpy
label_desc: Use image node_id 8 for calling a global function with example usage: one_hot(input) and returns: outp