code: def _test_validation(pipeline, error_glob, kwargs=None):
      with assert_raises(RuntimeError, glob=error_glob):
          pipe = pipeline(
              batch_size=4, num_threads=4, device_id=0, **(kwargs or {})
          )
          pipe.build()
          pipe.run()
  
file_path: DALI/dali/test/python/operator_1/test_inflate.py
imports: import numpy
  from nvidia.dali import pipeline_def, fn, types
  from test_utils import np_type_to_dali, has_operator, restrict_platform
  from nose_utils import assert_raises
  from nose2.tools import params
label_desc: Use image node_id 11 for calling a global function with example usage: _test_validation(pipeline, error_glob, kwargs) without return types