code: def test_minmax(ctx_factory):
      from pytest import importorskip
  
      importorskip("mako")
  
      context = ctx_factory()
      queue = cl.CommandQueue(context)
  
      from pyopencl.clrandom import rand as clrand
  
      if has_double_support(context.devices[0]):
          dtypes = [np.float64, np.float32, np.int32]
      else:
          dtypes = [np.float32, np.int32]
  
      for what in ["min", "max"]:
          for dtype in dtypes:
              a_gpu = clrand(queue, (200000,), dtype)
              a = a_gpu.get()
  
              op_a = getattr(np, what)(a)
              op_a_gpu = getattr(cl.array, what)(a_gpu).get()
  
              assert op_a_gpu == op_a, (op_a_gpu, op_a, dtype, what)
  
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 13 for calling a global function with example usage: test_minmax(ctx_factory) without return types