code: def test_scipy_dct(
      dtype_x_and_args,
      frontend,
      test_flags,
      fn_tree,
      on_device,
      backend_fw,
  ):
      input_dtype, x, _type, n, axis, norm = dtype_x_and_args
      helpers.test_frontend_function(
          input_dtypes=input_dtype,
          frontend=frontend,
          backend_to_test=backend_fw,
          test_flags=test_flags,
          fn_tree=fn_tree,
          on_device=on_device,
          x=x[0],
          type=_type,
          n=n,
          axis=axis,
          norm=norm,
          rtol_=1e-3,
          atol_=1e-1,
      )
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_scipy/test_fft/test_fft.py
imports: from hypothesis import strategies
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
label_desc: Use image node_id 8 for calling a global function with example usage: test_scipy_dct(dtype_x_and_args, frontend, test_flags, fn_tree, on_device, backend_fw) without return types