code: def allpairs_distances_loops(d):
      # X = np.random.randn(1000,d)
      # Y = np.random.randn(200,d)
      X = np.ones((500, d))
      Y = np.ones((200, d))
      return dists(X, Y)
  
label_desc: Use image node_id 2 for calling a global function with example usage: allpairs_distances_loops(d) and returns: dists