code: def testFftfreqErrors(self, n):
      name = "fftfreq"
      func = jnp.fft.fftfreq
      self.assertRaisesRegex(
          ValueError,
          "The n argument of jax.numpy.fft.{} only takes an int. "
          "Got n = \\[0, 1, 2\\].".format(name),
          lambda: func(n=n),
      )
      self.assertRaisesRegex(
          ValueError,
          "The d argument of jax.numpy.fft.{} only takes a single value. "
          "Got d = \\[0, 1, 2\\].".format(name),
          lambda: func(n=10, d=n),
      )
  
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 13 for calling the FftTest obj's underlying member method code with example usage: obj.testFftfreqErrors(n) without return types