code: def test_fft_n(self, xp):
      x = xp.asarray([1, 2, 3])
      if xp.__name__ == "torch":
          assert_raises(RuntimeError, fft.fft, x, 0)
      else:
          assert_raises(ValueError, fft.fft, x, 0)
  
imports: import queue
  import threading
  import multiprocessing
  import numpy
  import pytest
  from numpy.random import random
  from numpy.testing import assert_array_almost_equal, assert_allclose
  from pytest import raises
  import scipy.fft
  from scipy.conftest import array_api_compatible, skip_if_array_api_backend
  from scipy._lib._array_api import array_namespace, size, xp_assert_close, xp_assert_equal
label_desc: Use image node_id 1 for calling the TestFFTShift obj's underlying member method code with example usage: obj.test_fft_n(xp) without return types