code: def wasserstein_1d(x, y, p=1):
      x_sum = 0.0
      y_sum = 0.0
      for i in range(x.shape[0]):
          x_sum += x[i]
          y_sum += y[i]
  
      x_cdf = x / x_sum
      y_cdf = y / y_sum
  
      for i in range(1, x_cdf.shape[0]):
          x_cdf[i] += x_cdf[i - 1]
          y_cdf[i] += y_cdf[i - 1]
  
      return minkowski(x_cdf, y_cdf, p)
  
imports: import numpy
  import numba
  from pynndescent.optimal_transport import allocate_graph_structures, initialize_graph_structures, initialize_supply, initialize_cost, network_simplex_core, total_cost, ProblemStatus, sinkhorn_transport_plan
label_desc: Use image node_id 41 for calling a global function with example usage: wasserstein_1d(x, y, p) and returns: minkowski