code: def ufft2(inarray):
      """2-dimensional unitary Fourier transform.
  
      Compute the Fourier transform on the last 2 axes.
  
      Parameters
      ----------
      inarray : ndarray
          The array to transform.
  
      Returns
      -------
      outarray : ndarray (same shape as inarray)
          The unitary 2-D Fourier transform of ``inarray``.
  
      See Also
      --------
      uifft2, ufftn, urfftn
  
      Examples
      --------
      >>> input = np.ones((10, 128, 128))
      >>> output = ufft2(input)
      >>> np.allclose(np.sum(input[1, ...]) / np.sqrt(input[1, ...].size),
      ...             output[1, 0, 0])
      True
      >>> output.shape
      (10, 128, 128)
      """
      return ufftn(inarray, 2)
  
file_path: scikit-image/skimage/restoration/uft.py
imports: import numpy
  import scipy.fft
  from .._shared.utils import _supported_float_type
label_desc: Use image node_id 5 for calling a global function with example usage: ufft2(inarray) and returns: ufftn