code: def test_one_hot_scalar():
      np.random.seed(42)
      for device in ["cpu", "gpu"]:
          for i in range(10):
              yield partial(
                  check_one_hot_operator, axis_name="O"
              ), random_scalars_batch, device
  
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 10 for calling a global function with example usage: test_one_hot_scalar() without return types