code: def distances(data, clusters):
      xy1 = data[:, None]  # [N,1,2]
      xy2 = clusters[None]  # [1,M,2]
      d = np.sum(np.power(xy2 - xy1, 2), axis=-1)
      return d
  
imports: import numpy
  from matplotlib import pyplot
label_desc: Use image node_id 2 for calling a global function with example usage: distances(data, clusters) and returns: d