code: def verify_tensor_layouts(imgs, reshaped):
      assert imgs.layout() == "HWC"
      assert reshaped.layout() == "ab"
      for i in range(len(imgs)):
          assert imgs[i].layout() == "HWC"
          assert reshaped[i].layout() == "ab"
  
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 4 for calling a global function with example usage: verify_tensor_layouts(imgs, reshaped) without return types