def METHOD_NAME(seed, ctx, func_name, batch_dims,
                             signal_ndim, dims, normalized):
    if func_name == "FFT":
        pytest.skip("Not implemented in CPU.")
    from nbla_test_utils import backward_function_tester, convert_to_float2_array, convert_to_complex_array
    rng = np.random.RandomState(seed)
    shape = batch_dims + dims
    x_data_complex = rng.rand(*shape) + 1j * rng.rand(*shape)
    x_data = convert_to_float2_array(x_data_complex)
    inputs = [x_data]
    func_args = [signal_ndim, normalized]
    backward_function_tester(rng,
                             F.fft,
                             inputs,
                             func_args=func_args,
                             atol_f=1e-3,
                             atol_accum=8e-2,
                             backward=[True],
                             ctx=ctx)