code: def minkowski_distance(x, y, p=2):
      """
      Compute the L**p distance between two arrays.
  
      Parameters
      ----------
      x : (M, K) array_like
          Input array.
      y : (N, K) array_like
          Input array.
      p : float, 1 <= p <= infinity
          Which Minkowski p-norm to use.
  
      Examples
      --------
      >>> from scipy.spatial import minkowski_distance
      >>> minkowski_distance([[0,0],[0,0]], [[1,1],[0,1]])
      array([ 1.41421356,  1.        ])
  
      """
      x = np.asarray(x)
      y = np.asarray(y)
      if p == np.inf or p == 1:
          return minkowski_distance_p(x, y, p)
      else:
          return minkowski_distance_p(x, y, p) ** (1.0 / p)
  
imports: from __future__ import division, print_function, absolute_import
  import sys
  import numpy
  from heapq import heappush, heappop
  import scipy.sparse
label_desc: Use image node_id 2 for calling a global function with example usage: minkowski_distance(x, y, p) and returns: minkowski_distance_p, unknown