code: def test_complex(transform, dtype):
      y = transform(1j * np.arange(5, dtype=dtype))
      x = 1j * transform(np.arange(5))
      assert_array_almost_equal(x, y)
  
imports: from os.path import join, dirname
  from typing import Callable, Union
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_equal, assert_allclose
  import pytest
  from pytest import raises
  from scipy.fft._pocketfft.realtransforms import dct, idct, dst, idst, dctn, idctn, dstn, idstn
label_desc: Use image node_id 13 for calling a global function with example usage: test_complex(transform, dtype) without return types