code: def __init__(self, batch_size, layout, data_iterator):
      super(SynthPythonFlipPipeline, self).__init__(
          batch_size,
          seed=1234,
          num_threads=4,
          device_id=0,
          exec_async=False,
          exec_pipelined=False,
      )
      self.iterator = data_iterator
      self.layout = layout
      self.input = ops.ExternalSource()
      self.coin = ops.random.CoinFlip(seed=1234)
      h_dim, v_dim, d_dim = find_dims(layout)
  
      def fun(d, hor, ver, depth):
          return numpy_flip(d, h_dim, v_dim, d_dim, hor, ver, depth)
  
      self.python_flip = ops.PythonFunction(
          function=fun, output_layouts=layout
      )
  
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 1 to create a new SynthPythonFlipPipeline object from inherited base classes: Pipeline with example: obj = SynthPythonFlipPipeline(batch_size, layout, data_iterator)