code: def verify_make_tall(imgs, reshaped, src_shape=None):
      assert imgs.layout() == "HWC"
      assert reshaped.layout() == "HWC"
      for i in range(len(imgs)):
          if src_shape is not None:
              assert imgs.at(i).shape == src_shape
          img_shape = imgs.at(i).shape
          # collapse width and channels
          ref_shape = (img_shape[0] * 2, img_shape[1] // 2, 3)
          assert reshaped.at(i).shape == ref_shape
          assert_array_equal(
              imgs.at(i).flatten(), reshaped.at(i).flatten()
          )
  
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 6 for calling a global function with example usage: verify_make_tall(imgs, reshaped, src_shape) without return types