code: def test_ldexp(ctx_factory):
      context = ctx_factory()
      queue = cl.CommandQueue(context)
  
      for s in sizes:
          a = cl_array.arange(queue, s, dtype=np.float32)
          a2 = cl_array.arange(queue, s, dtype=np.float32) * 1e-3
          b = clmath.ldexp(a, a2)
  
          a = a.get()
          a2 = a2.get()
          b = b.get()
  
          for i in range(s):
              assert math.ldexp(a[i], int(a2[i])) == b[i]
  
file_path: pyopencl/test/test_clmath.py
imports: import math
  import numpy
  import pytest
  import pyopencl.array
  import pyopencl
  import pyopencl.clmath
  from pyopencl.tools import pytest_generate_tests_for_pyopencl
  from pyopencl.characterize import has_double_support, has_struct_arg_count_bug
label_desc: Use image node_id 5 for calling a global function with example usage: test_ldexp(ctx_factory) without return types