code: def test_modf(ctx_factory):
      context = ctx_factory()
      queue = cl.CommandQueue(context)
  
      for s in sizes:
          a = cl_array.arange(queue, s, dtype=np.float32) / 10
          fracpart, intpart = clmath.modf(a)
  
          a = a.get()
          intpart = intpart.get()
          fracpart = fracpart.get()
  
          for i in range(s):
              fracpart_true, intpart_true = math.modf(a[i])
  
              assert intpart_true == intpart[i]
              assert abs(fracpart_true - fracpart[i]) < 1e-4
  
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 6 for calling a global function with example usage: test_modf(ctx_factory) without return types