code: def reshape_pipe(shapes, src_dims=None, rel_shape=None):
      data = fn.external_source(
          lambda: get_data(shapes), batch=True, device="cpu"
      )
      return fn.reshape(data, src_dims=src_dims, rel_shape=rel_shape)
  
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 18 for calling a global function with example usage: reshape_pipe(shapes, src_dims, rel_shape) and returns: fn