code: def _testimpl_reshape_src_dims_arg(
      src_dims, rel_shape, shapes, expected_out_shapes
  ):
      batch_size = len(shapes)
      pipe = reshape_pipe(
          batch_size=batch_size,
          num_threads=1,
          device_id=0,
          shapes=shapes,
          src_dims=src_dims,
          rel_shape=rel_shape,
      )
      pipe.build()
      for _ in range(3):
          outs = pipe.run()
          for i in range(batch_size):
              out_arr = np.array(outs[0][i])
              assert out_arr.shape == expected_out_shapes[i]
  
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 19 for calling a global function with example usage: _testimpl_reshape_src_dims_arg(src_dims, rel_shape, shapes, expected_out_shapes) without return types