def METHOD_NAME(art_warning, image_batch, channels_first, framework):
    try:
        test_input, test_output = image_batch
        jpeg_compression = JpegCompression(clip_values=(0, 255), channels_first=channels_first)
        assert_array_equal(jpeg_compression(test_input)[0], test_output)
    except ARTTestException as e:
        art_warning(e)