code: def test_nonempty_supported_image_formats(ctx_factory):
      context = ctx_factory()
  
      device = context.devices[0]
  
      if device.image_support:
          assert (
              len(
                  cl.get_supported_image_formats(
                      context,
                      cl.mem_flags.READ_ONLY,
                      cl.mem_object_type.IMAGE2D,
                  )
              )
              > 0
          )
      else:
          from pytest import skip
  
          skip("images not supported on %s" % device.name)
  
imports: import numpy
  import numpy.linalg
  import pytest
  import pyopencl
  import pyopencl.array
  import pyopencl.cltypes
  import pyopencl.clrandom
  from pyopencl.tools import pytest_generate_tests_for_pyopencl, ImmediateAllocator, DeferredAllocator
  from pyopencl.characterize import get_pocl_version
label_desc: Use image node_id 8 for calling a global function with example usage: test_nonempty_supported_image_formats(ctx_factory) without return types