code: def complex_abs(x: NdarrayOrTensor) -> NdarrayOrTensor:
      """
      Compute the absolute value of a complex array.
  
      Args:
          x: Input array/tensor with 2 channels in the last dimension representing real and imaginary parts.
  
      Returns:
          Absolute value along the last dimension
  
      Example:
          .. code-block:: python
  
              import numpy as np
              x = np.array([3,4])[np.newaxis]
              # the following line prints 5
              print(complex_abs(x))
      """
      return complex_abs_t(x)
  
file_path: MONAI/monai/apps/reconstruction/complex_utils.py
imports: from __future__ import annotations
  import re
  import numpy
  import torch
  from torch import Tensor
  from monai.config.type_definitions import NdarrayOrTensor
  from monai.utils.type_conversion import convert_to_numpy, convert_to_tensor
label_desc: Use image node_id 3 for calling a global function with example usage: complex_abs(x) and returns: complex_abs_t