class_docstr: Tests for SpatialCorrelationCoefficient metric.
class_docstr_tok: ["Tests","for","SpatialCorrelationCoefficient","metric","."]
docstr: Test SpatialCorrelationCoefficient functional usage.
docstr_tok: ["Test","SpatialCorrelationCoefficient","functional","usage","."]
code: def test_scc_functional(
      self, preds, target, hp_filter, window_size, reduction
  ):
      """Test SpatialCorrelationCoefficient functional usage."""
      self.run_functional_metric_test(
          preds,
          target,
          metric_functional=spatial_correlation_coefficient,
          reference_metric=_wrapped_reference_scc(
              hp_filter, window_size, reduction
          ),
          metric_args={
              "hp_filter": hp_filter,
              "window_size": window_size,
              "reduction": reduction,
          },
      )
  
file_path: torchmetrics/tests/unittests/image/test_scc.py
imports: import numpy
  import pytest
  import torch
  from sewar.full_ref import scc
  from torchmetrics.functional.image import spatial_correlation_coefficient
  from torchmetrics.image import SpatialCorrelationCoefficient
  from unittests import BATCH_SIZE, NUM_BATCHES, _Input
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 2 for calling the TestSpatialCorrelationCoefficient obj's underlying member method code with example usage: obj.test_scc_functional(preds, target, hp_filter, window_size, reduction) without return types