code: def hfft2(x, s=None, axis=(-2, -1), norm="backward"):
      # check if the input tensor x is a hermitian complex
      if not ivy.allclose(ivy.conj(ivy.matrix_transpose(x)), x):
          raise ValueError("Input tensor x must be Hermitian complex.")
  
      fft_result = ivy.fft2(x, s=s, dim=axis, norm=norm)
  
      # Depending on the norm, apply scaling and normalization
      if norm == "forward":
          fft_result /= ivy.sqrt(ivy.prod(ivy.shape(fft_result)))
      elif norm == "ortho":
          fft_result /= ivy.sqrt(ivy.prod(ivy.shape(x)))
  
      return ivy.real(fft_result)
  
file_path: ivy/ivy/functional/frontends/paddle/fft.py
imports: import ivy
  from ivy.func_wrapper import with_supported_dtypes
  from ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 6 for calling a global function with example usage: hfft2(x, s, axis, norm) and returns: ivy