code: def test_image_decoder_lossless_jpeg_cpu_not_supported():
      device_id = 0
      if not is_nvjpeg_lossless_supported(device_id=device_id):
          raise SkipTest(
              "NVJPEG lossless supported on SM60+ capable devices only"
          )
  
      @pipeline_def(batch_size=1, device_id=device_id, num_threads=1)
      def pipe(file):
          encoded, _ = fn.readers.file(files=[file])
          decoded = fn.experimental.decoders.image(
              encoded,
              device="cpu",
              dtype=types.UINT16,
              output_type=types.ANY_DATA,
          )
          return decoded
  
      imgfile = "db/single/jpeg_lossless/0/cat-1245673_640_grayscale_16bit.jpg"
      p = pipe(os.path.join(test_data_root, imgfile))
      p.build()
  
      assert_raises(
          RuntimeError,
          p.run,
          glob='*Failed to decode a JPEG lossless (SOF-3)*Only "mixed" backend*',
      )
  
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 nose_utils import assert_raises
  from test_utils import compare_pipelines
  from test_utils import get_dali_extra_path
  from test_utils import to_array
  from test_utils import get_arch
  from nose2.tools import params
  from nose import SkipTest
label_desc: Use image node_id 28 for calling a global function with example usage: test_image_decoder_lossless_jpeg_cpu_not_supported() and returns: decoded