code: def test_image_decoder_consistency():
      for out_img_type in [
          types.RGB,
          types.BGR,
          types.YCbCr,
          types.GRAY,
          types.ANY_DATA,
      ]:
          for file_fmt in test_good_path:
              path = os.path.join(good_path, file_fmt)
              yield _testimpl_image_decoder_consistency, out_img_type, file_fmt, path
  
          for file_fmt, path, ext in [
              (
                  "tiff",
                  "db/single/multichannel/tiff_multichannel",
                  "tif",
              ),
              ("jpeg2k", "db/single/multichannel/with_alpha", "jp2"),
              ("png", "db/single/multichannel/with_alpha", "png"),
          ]:
              subdir = None  # In those paths the images are not organized in subdirs
              yield _testimpl_image_decoder_consistency, out_img_type, file_fmt, path, subdir, ext
  
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 17 for calling a global function with example usage: test_image_decoder_consistency() without return types