class_docstr: Wrapper for deprecated import.
  
  >>> import torch
  >>> g = torch.manual_seed(22)
  >>> preds = torch.rand(4, 3, 16, 16)
  >>> target = torch.rand(4, 3, 16, 16)
  >>> rase = _RelativeAverageSpectralError()
  >>> rase(preds, target)
  tensor(5114.6641)
code: def __init__(
      self,
      window_size: int = 8,
      **kwargs: Dict[str, Any],
  ) -> None:
      _deprecated_root_import_class(
          "RelativeAverageSpectralError", "image"
      )
      super().__init__(window_size=window_size, **kwargs)
  
imports: from typing import Any, Dict, Optional, Sequence, Tuple, Union
  from typing_extensions import Literal
  from torchmetrics.image.d_lambda import SpectralDistortionIndex
  from torchmetrics.image.ergas import ErrorRelativeGlobalDimensionlessSynthesis
  from torchmetrics.image.psnr import PeakSignalNoiseRatio
  from torchmetrics.image.rase import RelativeAverageSpectralError
  from torchmetrics.image.rmse_sw import RootMeanSquaredErrorUsingSlidingWindow
  from torchmetrics.image.sam import SpectralAngleMapper
  from torchmetrics.image.ssim import MultiScaleStructuralSimilarityIndexMeasure, StructuralSimilarityIndexMeasure
  from torchmetrics.image.tv import TotalVariation
  from torchmetrics.image.uqi import UniversalImageQualityIndex
  from torchmetrics.utilities.prints import _deprecated_root_import_class
label_desc: Use image node_id 1 to create a new _RelativeAverageSpectralError object from inherited base classes: RelativeAverageSpectralError with example: obj = _RelativeAverageSpectralError(window_size)