code: def _test_op(device):
      pipe = ConstantPipeline(device)
      pipe.build()
      for iter in range(3):
          out = pipe.run()
          if device == "gpu":
              out = [o.as_cpu() for o in out]
  
          for o in range(len(ref)):
              for i in range(len(out[o])):
                  check(out[o].at(i), ref[o])
  
imports: import numpy
  import nvidia.dali
  import nvidia.dali.fn
  import nvidia.dali.ops
  import nvidia.dali.types
  import os
  from nvidia.dali import Pipeline
  from test_utils import check_batch
  from test_utils import get_dali_extra_path
label_desc: Use image node_id 2 for calling a global function with example usage: _test_op(device) without return types