code: def benchmark_remap_against_cv(self, map_mode):
      import torch.cuda.nvtx as nvtx
  
      nvtx.range_push("Benchmark against OpenCV")
      maps = [
          update_map(
              mode=map_mode,
              shape=self.img_size,
              nimages=self.batch_size,
          )
      ]
      dpipe = remap_pipe(
          "dali",
          maps,
          self.img_size,
          exec_async=False,
          exec_pipelined=False,
          **self.common_dali_pipe_params,
          prefetch_queue_depth=1,
      )
      cpipe = remap_pipe(
          "cv",
          maps,
          self.img_size,
          exec_async=False,
          exec_pipelined=False,
          **self.common_dali_pipe_params,
          prefetch_queue_depth=1,
      )
      dpipe.build()
      cpipe.build()
      dtime = self._measure_time(dpipe.run)
      ctime = self._measure_time(cpipe.run)
      nvtx.range_pop()
      print(
          f"DALI Pipeline average time: {dtime}. OpenCV Pipeline average time: {ctime}."
      )
  
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 3 for calling the RemapTest obj's underlying member method code with example usage: obj.benchmark_remap_against_cv(map_mode) without return types