code: def _testimpl_image_decoder_consistency(
      img_out_type, file_fmt, path, subdir="*", ext=None
  ):
      eps = 1
      if file_fmt == "jpeg" or file_fmt == "mixed":
          eps = 4
      if (
          file_fmt == "jpeg2k" or file_fmt == "mixed"
      ) and img_out_type == types.YCbCr:
          eps = 6
      files = get_img_files(
          os.path.join(test_data_root, path), subdir=subdir, ext=ext
      )
      compare_pipelines(
          img_decoder_pipe("cpu", out_type=img_out_type, files=files),
          img_decoder_pipe("mixed", out_type=img_out_type, files=files),
          batch_size=batch_size_test,
          N_iterations=3,
          eps=eps,
      )
  
imports: import glob
  import math
  import numpy
  import nvidia.dali.backend
  import nvidia.dali.fn
  import nvidia.dali.types
  import os
  import random
  from nvidia.dali import pipeline_def
  from nose2.tools import params
  from nose_utils import assert_raises
  from test_utils import check_output_pattern
  from test_utils import compare_pipelines
  from test_utils import get_dali_extra_path
  from test_utils import to_array
label_desc: Use image node_id 16 for calling a global function with example usage: _testimpl_image_decoder_consistency(img_out_type, file_fmt, path, subdir, ext) without return types