class_docstr: Testing of Relative Average Spectral Error.
class_docstr_tok: ["Testing","of","Relative","Average","Spectral","Error","."]
docstr: Test functional implementation of metric.
docstr_tok: ["Test","functional","implementation","of","metric","."]
code: def test_rase_functional(self, preds, target, window_size):
      """Test functional implementation of metric."""
      self.run_functional_metric_test(
          preds,
          target,
          relative_average_spectral_error,
          partial(_sewar_rase, window_size=window_size),
          metric_args={"window_size": window_size},
      )
  
file_path: torchmetrics/tests/unittests/image/test_rase.py
imports: from functools import partial
  from typing import NamedTuple
  import pytest
  import sewar
  import torch
  from torch import Tensor
  from torchmetrics.functional import relative_average_spectral_error
  from torchmetrics.functional.image.helper import _uniform_filter
  from torchmetrics.image import RelativeAverageSpectralError
  from unittests import BATCH_SIZE
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 2 for calling the TestRelativeAverageSpectralError obj's underlying member method code with example usage: obj.test_rase_functional(preds, target, window_size) without return types