code: def testIrfftTranspose(self):
      # regression test for https://github.com/google/jax/issues/6223
      def build_matrix(linear_func, size):
          return jax.vmap(linear_func)(jnp.eye(size, size))
  
      def func(x):
          (x,) = promote_dtypes_complex(x)
          return jnp.fft.irfft(
              jnp.concatenate(
                  [jnp.zeros_like(x, shape=1), x[:2] + 1j * x[2:]]
              )
          )
  
      def func_transpose(x):
          return jax.linear_transpose(func, x)(x)[0]
  
      matrix = build_matrix(func, 4)
      matrix2 = build_matrix(func_transpose, 4).T
      self.assertAllClose(matrix, matrix2)
  
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 5 for calling the FftTest obj's underlying member method code with example usage: obj.testIrfftTranspose() and returns: jax, jnp, jax