code: def test_reverse(ctx_factory):
      context = ctx_factory()
      queue = cl.CommandQueue(context)
  
      n = 5000
      a = np.arange(n).astype(np.float32)
      a_gpu = cl.array.to_device(queue, a)
  
      a_gpu = a_gpu.reverse()
  
      assert (a[::-1] == a_gpu.get()).all()
  
imports: import numpy
  import numpy.linalg
  import sys
  from pytools import memoize
  from test_array import general_clrand
  import pytest
  import pyopencl
  import pyopencl.array
  from pyopencl.tools import pytest_generate_tests_for_pyopencl
  from pyopencl.characterize import has_double_support, has_struct_arg_count_bug
  from pyopencl.scan import InclusiveScanKernel, ExclusiveScanKernel, GenericScanKernel, GenericDebugScanKernel
  from pyopencl.characterize import get_pocl_version
label_desc: Use image node_id 6 for calling a global function with example usage: test_reverse(ctx_factory) without return types