code: def sqr_dists_loops(X, Y):
      m, n = X.shape[0], Y.shape[0]
      D = np.zeros((m, n))
      for i in range(m):
          for j in range(n):
              D[i, j] = np.sum((X[i] - Y[j]) ** 2)
      return D
  
label_desc: Use image node_id 2 for calling a global function with example usage: sqr_dists_loops(X, Y) and returns: D