class_docstr: Test class for `MinkowskiDistance` metric.
class_docstr_tok: ["Test","class","for","`","MinkowskiDistance","`","metric","."]
docstr: Test dtype support of the metric on GPU.
docstr_tok: ["Test","dtype","support","of","the","metric","on","GPU","."]
code: def test_minkowski_distance_half_gpu(
      self, preds, target, ref_metric, p
  ):
      """Test dtype support of the metric on GPU."""
      self.run_precision_test_gpu(
          preds,
          target,
          MinkowskiDistance,
          minkowski_distance,
          metric_args={"p": p},
      )
  
file_path: torchmetrics/tests/unittests/regression/test_minkowski_distance.py
imports: from functools import partial
  import pytest
  import torch
  from scipy.spatial.distance import minkowski
  from torchmetrics.functional import minkowski_distance
  from torchmetrics.regression import MinkowskiDistance
  from torchmetrics.utilities.exceptions import TorchMetricsUserError
  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 4 for calling the TestMinkowskiDistance obj's underlying member method code with example usage: obj.test_minkowski_distance_half_gpu(preds, target, ref_metric, p) without return types