code: def test_half_integer_real_part():
      x = np.arange(-100, 101) + 0.5
      y = np.hstack(
          (-np.linspace(310, -30, 10), np.linspace(-30, 310, 10))
      )
      x, y = np.meshgrid(x, y)
      z = x + 1j * y
      # In the following we should be *exactly* right
      res = sinpi(z)
      assert_equal(res.imag, 0.0)
      res = cospi(z)
      assert_equal(res.real, 0.0)
  
file_path: scipy/scipy/special/tests/test_trig.py
imports: import pytest
  import numpy
  from numpy.testing import assert_equal, assert_allclose, suppress_warnings
  from scipy.special._ufuncs import _sinpi
  from scipy.special._ufuncs import _cospi
label_desc: Use image node_id 2 for calling a global function with example usage: test_half_integer_real_part() without return types