code: def _spectral_angle_mapper(
      preds: Tensor,
      target: Tensor,
      reduction: Literal[
          "elementwise_mean", "sum", "none", None
      ] = "elementwise_mean",
  ) -> Tensor:
      """Wrapper for deprecated import.
  
      >>> import torch
      >>> gen = torch.manual_seed(42)
      >>> preds = torch.rand([16, 3, 16, 16], generator=gen)
      >>> target = torch.rand([16, 3, 16, 16], generator=gen)
      >>> _spectral_angle_mapper(preds, target)
      tensor(0.5914)
  
      """
      _deprecated_root_import_func("spectral_angle_mapper", "image")
      return spectral_angle_mapper(
          preds=preds, target=target, reduction=reduction
      )
  
imports: from typing import Optional, Sequence, Tuple, Union
  from torch import Tensor
  from typing_extensions import Literal
  from torchmetrics.functional.image.d_lambda import spectral_distortion_index
  from torchmetrics.functional.image.ergas import error_relative_global_dimensionless_synthesis
  from torchmetrics.functional.image.gradients import image_gradients
  from torchmetrics.functional.image.psnr import peak_signal_noise_ratio
  from torchmetrics.functional.image.rase import relative_average_spectral_error
  from torchmetrics.functional.image.rmse_sw import root_mean_squared_error_using_sliding_window
  from torchmetrics.functional.image.sam import spectral_angle_mapper
  from torchmetrics.functional.image.ssim import multiscale_structural_similarity_index_measure, structural_similarity_index_measure
  from torchmetrics.functional.image.tv import total_variation
  from torchmetrics.functional.image.uqi import universal_image_quality_index
  from torchmetrics.utilities.prints import _deprecated_root_import_func
label_desc: Use image node_id 7 for calling a global function with example usage: _spectral_angle_mapper(preds, target, reduction) and returns: spectral_angle_mapper