code: def check_copy(shape, layout, dev, dtype=np.uint8):
      pipe = copy_pipe(shape, layout, dev, dtype)
      pipe.build()
      for i in range(10):
          input, output = pipe.run()
          for i in range(batch_size):
              assert output[i].layout() == input[i].layout()
              expected = to_array(input[i])
              obtained = to_array(output[i])
              np.testing.assert_array_equal(expected, obtained)
  
imports: from nvidia.dali import fn, pipeline_def
  from test_utils import RandomlyShapedDataIterator, to_array
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: check_copy(shape, layout, dev, dtype) without return types