code: def run_cases(backend1, backend2, epsilon):
      for output_size in [None, (160, 240)]:
          for itype, otype in io_types:
              batch_size = np.random.choice([1, 4, 19])
  
              def run_case(backend1, backend2, *args):
                  pipe1 = create_pipeline(backend1, *args)
                  pipe2 = create_pipeline(backend2, *args)
                  compare(pipe1, pipe2, epsilon)
  
              yield run_case, backend1, backend2, batch_size, otype, itype, output_size
  
imports: import cv2
  import numpy
  import math
  import os
  import random
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.types
  import nvidia.dali
  from test_utils import compare_pipelines
  from sequences_test_utils import ArgData, ArgDesc, ArgCb, ParamsProvider, get_video_input_cases, sequence_suite_helper
label_desc: Use image node_id 9 for calling a global function with example usage: run_cases(backend1, backend2, epsilon) without return types