code: def test_atan2(ctx_factory):
      context = ctx_factory()
      queue = cl.CommandQueue(context)
  
      for s in sizes:
          a = (
              cl_array.arange(queue, s, dtype=np.float32)
              - np.float32(s / 2)
          ) / 100
          a2 = (
              s / 2 - 1 - cl_array.arange(queue, s, dtype=np.float32)
          ) / 100
          b = clmath.atan2(a, a2)
  
          a = a.get()
          a2 = a2.get()
          b = b.get()
  
          for i in range(s):
              assert abs(math.atan2(a[i], a2[i]) - b[i]) < 1e-6
  
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 2 for calling a global function with example usage: test_atan2(ctx_factory) without return types