class_docstr: Test class for `VisualInformationFidelity` metric.
docstr: Test class implementation of metric.
docstr_tok: ["Test","class","implementation","of","metric","."]
code: def test_vif(self, preds, target, ddp):
      """Test class implementation of metric."""
      self.run_class_metric_test(
          ddp, preds, target, VisualInformationFidelity, _sewar_vif
      )
  
file_path: torchmetrics/tests/unittests/image/test_vif.py
imports: import numpy
  import pytest
  import torch
  from sewar.full_ref import vifp
  from torchmetrics.functional.image.vif import visual_information_fidelity
  from torchmetrics.image.vif import VisualInformationFidelity
  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 1 for calling the TestVIF obj's underlying member method code with example usage: obj.test_vif(preds, target, ddp) without return types