code: def root_sum_of_squares(
      x: NdarrayOrTensor, spatial_dim: int
  ) -> NdarrayOrTensor:
      """
      Compute the root sum of squares (rss) of the data (typically done for multi-coil MRI samples)
  
      Args:
          x: Input array/tensor
          spatial_dim: dimension along which rss is applied
  
      Returns:
          rss of x along spatial_dim
  
      Example:
          .. code-block:: python
  
              import numpy as np
              x = np.ones([2,3])
              # the following line prints array([1.41421356, 1.41421356, 1.41421356])
              print(rss(x,spatial_dim=0))
      """
      rss_x: NdarrayOrTensor = root_sum_of_squares_t(x, spatial_dim)  # type: ignore
      return rss_x
  
imports: from __future__ import annotations
  from torch import Tensor
  from monai.config.type_definitions import NdarrayOrTensor
label_desc: Use image node_id 2 for calling a global function with example usage: root_sum_of_squares(x, spatial_dim) and returns: rss_x