code: def _test_invalid_args(device, args, message, run):
      data = [np.uint8([[1, 2, 3]]), np.uint8([[1, 2]])]
      pipe = Pipeline(2, 1, 0)
      src = fn.external_source(lambda: data, device=device)
      pipe.set_outputs(fn.tensor_subscript(src, **args))
      with assert_raises(RuntimeError, glob=message):
          pipe.build()
          if run:
              pipe.run()
  
imports: from nvidia import dali
  from nvidia.dali import fn
  import numpy
  from nvidia.dali.pipeline import Pipeline
  from nose_utils import assert_raises
label_desc: Use image node_id 11 for calling a global function with example usage: _test_invalid_args(device, args, message, run) without return types