class_docstr: Test class for `TweedieDevianceScore` metric.
class_docstr_tok: ["Test","class","for","`","TweedieDevianceScore","`","metric","."]
docstr: Test class implementation of metric.
docstr_tok: ["Test","class","implementation","of","metric","."]
code: def test_deviance_scores_class(self, ddp, preds, target, power):
      """Test class implementation of metric."""
      self.run_class_metric_test(
          ddp,
          preds,
          target,
          TweedieDevianceScore,
          partial(_sklearn_deviance, power=power),
          metric_args={"power": power},
      )
  
imports: from functools import partial
  import pytest
  import torch
  from sklearn.metrics import mean_tweedie_deviance
  from torch import Tensor
  from torchmetrics.functional.regression.tweedie_deviance import tweedie_deviance_score
  from torchmetrics.regression.tweedie_deviance import TweedieDevianceScore
  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 TestDevianceScore obj's underlying member method code with example usage: obj.test_deviance_scores_class(ddp, preds, target, power) without return types