code: def test_jpeg_compression_distortion():
      for batch_size in [1, 15]:
          for device in ["cpu", "gpu"]:
              for quality in [2, None, 50]:
                  for layout in ["HWC", "FHWC"]:
                      yield _testimpl_jpeg_compression_distortion, batch_size, device, quality, layout
  
file_path: DALI/dali/test/python/operator_1/test_jpeg_compression_distortion.py
imports: from nvidia.dali import pipeline_def
  import nvidia.dali.fn
  import nvidia.dali.types
  from random import shuffle
  import numpy
  from test_utils import as_array
  import os
  import cv2
label_desc: Use image node_id 3 for calling a global function with example usage: test_jpeg_compression_distortion() without return types