code: def test_identity_1d_overwrite(
      forward, backward, type, dtype, axis, norm, overwrite_x
  ):
      # Test the identity f^-1(f(x)) == x
      x = np.random.rand(7, 8)
      x_orig = x.copy()
  
      y = forward(
          x, type, axis=axis, norm=norm, overwrite_x=overwrite_x
      )
      y_orig = y.copy()
      z = backward(
          y, type, axis=axis, norm=norm, overwrite_x=overwrite_x
      )
      if not overwrite_x:
          assert_allclose(z, x, rtol=1e-6, atol=1e-6)
          assert_array_equal(x, x_orig)
          assert_array_equal(y, y_orig)
      else:
          assert_allclose(z, x_orig, rtol=1e-6, atol=1e-6)
  
file_path: catboost/contrib/python/scipy/py3/scipy/fft/tests/test_real_transforms.py
imports: import numpy
  from numpy.testing import assert_allclose, assert_array_equal
  import pytest
  from scipy.fft import dct, idct, dctn, idctn, dst, idst, dstn, idstn
  import scipy.fft
  from scipy import fftpack
label_desc: Use image node_id 2 for calling a global function with example usage: test_identity_1d_overwrite(forward, backward, type, dtype, axis, norm, overwrite_x) without return types