code: def _test_select_masks_wrong_input(data_source_fn, err_regex):
      p = wrong_input_pipe(data_source_fn=data_source_fn)
      p.build()
      with assert_raises(RuntimeError, regex=err_regex):
          _ = p.run()
  
file_path: DALI/dali/test/python/operator_2/test_segmentation_select_masks.py
imports: from nose_utils import assert_raises
  import numpy
  import nvidia.dali
  import nvidia.dali.fn
  import random
  from segmentation_test_utils import make_batch_select_masks
label_desc: Use image node_id 4 for calling a global function with example usage: _test_select_masks_wrong_input(data_source_fn, err_regex) without return types