code: def _pytorch_ms_ssim(preds, target, data_range, kernel_size):
      return ms_ssim(
          preds,
          target,
          data_range=data_range,
          win_size=kernel_size,
          size_average=False,
      )
  
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 1 for calling a global function with example usage: _pytorch_ms_ssim(preds, target, data_range, kernel_size) and returns: ms_ssim