code: def test_flip_vs_numpy():
      for batch_size in [1, 8, 32]:
          for device in ["cpu", "gpu"]:
              for layout, shape in [
                  ("HWC", (15, 20, 3)),
                  ("CHW", (4, 20, 25)),
                  ("DHWC", (10, 20, 30, 2)),
                  ("CDHW", (2, 5, 10, 15)),
                  ("FHWC", (3, 90, 120, 3)),
                  ("FCHW", (4, 3, 100, 150)),
                  ("FDHWC", (4, 20, 50, 30, 3)),
                  ("FCDHW", (3, 3, 20, 50, 30)),
              ]:
                  yield check_flip, batch_size, layout, shape, device
  
imports: from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.types
  import numpy
  import os
  from test_utils import compare_pipelines
  from test_utils import RandomDataIterator
  from test_utils import get_dali_extra_path
label_desc: Use image node_id 4 for calling a global function with example usage: test_flip_vs_numpy() without return types