code: def _sk_metric_multi_target(preds, target, p):
      sk_preds = preds.view(-1).numpy()
      sk_target = target.view(-1).numpy()
      return scipy_minkowski(sk_preds, sk_target, 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 2 for calling a global function with example usage: _sk_metric_multi_target(preds, target, p) and returns: scipy_minkowski