code: def dist_func(x1, x2, p):
      return np.sum((x1 - x2) ** p) ** (1.0 / p)
  
imports: import copy
  import itertools
  import pickle
  import numpy
  import pytest
  from scipy.spatial.distance import cdist
  from sklearn.metrics import DistanceMetric
  from sklearn.metrics._dist_metrics import BOOL_METRICS, DistanceMetric32, DistanceMetric64
  from sklearn.utils import check_random_state
  from sklearn.utils._testing import assert_allclose, create_memmap_backed_data
  from sklearn.utils.fixes import CSR_CONTAINERS, parse_version, sp_version
label_desc: Use image node_id 1 for calling a global function with example usage: dist_func(x1, x2, p) and returns: unknown