code: def test_ms_ssim_contrast_sensitivity():
      """Test that the contrast sensitivity is correctly computed with 3d input."""
      preds = torch.rand(1, 1, 50, 50, 50)
      target = torch.rand(1, 1, 50, 50, 50)
      out = multiscale_structural_similarity_index_measure(
          preds,
          target,
          data_range=1.0,
          kernel_size=3,
          betas=(1.0, 0.5, 0.25),
      )
      assert isinstance(out, torch.Tensor)
  
file_path: torchmetrics/tests/unittests/image/test_ms_ssim.py
imports: from functools import partial
  import pytest
  import torch
  from pytorch_msssim import ms_ssim
  from torchmetrics.functional.image.ssim import multiscale_structural_similarity_index_measure
  from torchmetrics.image.ssim import MultiScaleStructuralSimilarityIndexMeasure
  from unittests import NUM_BATCHES, _Input
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester
label_desc: Use image node_id 2 for calling a global function with example usage: test_ms_ssim_contrast_sensitivity() without return types