class_docstr: Test class for `StructuralSimilarityIndexMeasure` metric.
class_docstr_tok: ["Test","class","for","`","StructuralSimilarityIndexMeasure","`","metric","."]
docstr: Test class implementation of metric with gaussian kernel.
docstr_tok: ["Test","class","implementation","of","metric","with","gaussian","kernel","."]
code: def test_ssim_without_gaussian_kernel(
      self, preds, target, sigma, ddp
  ):
      """Test class implementation of metric with gaussian kernel."""
      self.run_class_metric_test(
          ddp,
          preds,
          target,
          StructuralSimilarityIndexMeasure,
          partial(
              _skimage_ssim,
              data_range=1.0,
              sigma=sigma,
              kernel_size=None,
          ),
          metric_args={
              "gaussian_kernel": False,
              "data_range": 1.0,
              "sigma": sigma,
          },
      )
  
imports: from functools import partial
  import numpy
  import pytest
  import torch
  from pytorch_msssim import ssim
  from skimage.metrics import structural_similarity
  from torch import Tensor
  from torchmetrics.functional import structural_similarity_index_measure
  from torchmetrics.image import StructuralSimilarityIndexMeasure
  from unittests import NUM_BATCHES, _Input
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 3 for calling the TestSSIM obj's underlying member method code with example usage: obj.test_ssim_without_gaussian_kernel(preds, target, sigma, ddp) without return types