code: def testFftErrors(self, inverse, real, hermitian):
      rng = jtu.rand_default(self.rng())
      name = "fft"
      if real:
          name = "r" + name
      elif hermitian:
          name = "h" + name
      if inverse:
          name = "i" + name
      func = getattr(jnp.fft, name)
  
      self.assertRaisesRegex(
          ValueError,
          f"jax.numpy.fft.{name} does not support multiple axes. "
          f"Please use jax.numpy.fft.{name}n. Got axis = \\[1, 1\\].",
          lambda: func(rng([2, 3], dtype=np.float64), axis=[1, 1]),
      )
      self.assertRaisesRegex(
          ValueError,
          f"jax.numpy.fft.{name} does not support multiple axes. "
          f"Please use jax.numpy.fft.{name}n. Got axis = \\(1, 1\\).",
          lambda: func(rng([2, 3], dtype=np.float64), axis=(1, 1)),
      )
      self.assertRaises(
          ValueError,
          lambda: func(rng([2, 3], dtype=np.float64), axis=[2]),
      )
      self.assertRaises(
          ValueError,
          lambda: func(rng([2, 3], dtype=np.float64), axis=[-3]),
      )
  
imports: import itertools
  import numpy
  from absl.testing import absltest
  from absl.testing import parameterized
  import jax
  from jax import lax
  from jax import numpy
  from jax._src import config
  from jax._src import dtypes
  from jax._src import test_util
  from jax._src.numpy.util import promote_dtypes_complex
label_desc: Use image node_id 9 for calling the FftTest obj's underlying member method code with example usage: obj.testFftErrors(inverse, real, hermitian) without return types