code: def check_reshape(device, batch_size, relative, use_wildcard):
      pipe = ReshapePipeline(device, batch_size, relative, use_wildcard)
      pipe.build()
      for iter in range(10):
          imgs, reshaped = pipe.run()
          if device == "gpu":
              verify_tensor_layouts(imgs, reshaped)
              imgs = imgs.as_cpu()
              reshaped = reshaped.as_cpu()
          verify_flatten(imgs, reshaped, (224, 320, 3))
  
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 7 for calling a global function with example usage: check_reshape(device, batch_size, relative, use_wildcard) without return types