code: def test_reshape_src_dims_throw_error(
      src_dims, rel_shape, shapes, err_regex
  ):
      pipe = reshape_pipe(
          batch_size=len(shapes),
          num_threads=1,
          device_id=0,
          shapes=shapes,
          src_dims=src_dims,
          rel_shape=rel_shape,
      )
      pipe.build()
      with assert_raises(RuntimeError, regex=err_regex):
          pipe.run()
  
imports: from nvidia.dali.pipeline import Pipeline
  from nvidia.dali import pipeline_def
  import nvidia.dali.fn
  import nvidia.dali.ops
  import nvidia.dali.types
  import numpy
  from numpy.testing import assert_array_equal
  import os
  from nose_utils import assert_raises
  from nose2.tools import params
label_desc: Use image node_id 21 for calling a global function with example usage: test_reshape_src_dims_throw_error(src_dims, rel_shape, shapes, err_regex) without return types