code: def test_fft_layer(
      *,
      x_and_fft,
      test_gradients,
      on_device,
      class_name,
      method_name,
      ground_truth_backend,
      init_flags,
      method_flags,
      backend_fw,
  ):
      dtype, x, dim, norm, n = x_and_fft
      helpers.test_method(
          ground_truth_backend=ground_truth_backend,
          backend_to_test=backend_fw,
          init_flags=init_flags,
          method_flags=method_flags,
          init_all_as_kwargs_np={
              "dim": dim,
              "norm": norm,
              "n": n,
              "device": on_device,
              "dtype": dtype[0],
          },
          method_input_dtypes=dtype,
          method_all_as_kwargs_np={"inputs": x[0]},
          class_name=class_name,
          method_name=method_name,
          test_gradients=test_gradients,
          on_device=on_device,
      )
  
imports: import numpy
  from hypothesis import assume
  from hypothesis import strategies
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy.data_classes.container import Container
  from ivy.functional.ivy.gradients import _variable
  from ivy.functional.ivy.layers import _deconv_length
  from ivy_tests.test_ivy.helpers import handle_method
  from ivy_tests.test_ivy.helpers.assertions import assert_same_type_and_shape
  from ivy_tests.test_ivy.test_functional.test_experimental.test_nn import test_layers
  from ivy_tests.test_ivy.test_functional.test_experimental.test_nn.test_layers import _valid_dct
label_desc: Use image node_id 24 for calling a global function with example usage: test_fft_layer() without return types