code: def compare(pipe1, pipe2, max_err):
      epoch_size = pipe1.epoch_size("Reader")
      batch_size = pipe1.max_batch_size
      niter = (epoch_size + batch_size - 1) // batch_size
      compare_pipelines(
          pipe1, pipe2, batch_size, niter, max_allowed_error=max_err
      )
  
imports: import nose_utils
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.fn
  import nvidia.dali.types
  import numpy
  import math
  import os
  import cv2
  from sequences_test_utils import video_suite_helper, SampleDesc, ArgCb
  from test_utils import compare_pipelines
  import random
label_desc: Use image node_id 5 for calling a global function with example usage: compare(pipe1, pipe2, max_err) without return types