code: def _compare_pipelines_pixelwise(
      self, pipe1, pipe2, N_iterations, eps=0.01
  ):
      pipe1.build()
      pipe2.build()
      for _ in range(N_iterations):
          out1 = pipe1.run()
          out2 = pipe2.run()
          self.assertTrue(
              len(out1) == len(out2),
              f"Numbers of outputs in the pipelines does not match: {len(out1)} vs {len(out2)}.",
          )
          for i in range(len(out1)):
              out1_data = (
                  out1[i].as_cpu()
                  if isinstance(out1[i][0], dali.backend_impl.TensorGPU)
                  else out1[i]
              )
              out2_data = (
                  out2[i].as_cpu()
                  if isinstance(out2[i][0], dali.backend_impl.TensorGPU)
                  else out2[i]
              )
              for sample1, sample2 in zip(out1_data, out2_data):
                  s1 = np.array(sample1)
                  s2 = np.array(sample2)
                  self.assertTrue(
                      s1.shape == s2.shape,
                      f"Sample shapes do not match: {s1.shape} vs {s2.shape}",
                  )
                  noutliers = self._count_outlying_pixels(s1, s2)
                  size = np.prod(s1.shape[:-1])
                  self.assertTrue(
                      noutliers / size < eps,
                      f"Test failed. Actual error: {noutliers / size}, expected: {eps}.",
                  )
  
imports: import cv2
  import numpy
  import nvidia.dali
  import nvidia.dali.fn
  import os.path
  import unittest
  import time
  from nose2.tools import params
  from nvidia.dali.pipeline.experimental import pipeline_def
  from nvidia.dali.types import DALIInterpType
label_desc: Use image node_id 5 for calling the RemapTest obj's underlying member method code with example usage: obj._compare_pipelines_pixelwise(pipe1, pipe2, N_iterations, eps) without return types