code: def check_flip(batch_size, layout, shape, device):
      eiis = [
          RandomDataIterator(batch_size, shape=shape) for k in range(2)
      ]
      compare_pipelines(
          SynthFlipPipeline(batch_size, layout, iter(eiis[0]), device),
          SynthPythonFlipPipeline(batch_size, layout, iter(eiis[1])),
          batch_size=batch_size,
          N_iterations=3,
      )
  
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 3 for calling a global function with example usage: check_flip(batch_size, layout, shape, device) without return types