code: def compute_distance(m, l):
          '''Compute distance between two trajectories
  
          Returns
          -------
          numpy.ndarray
          '''
  
          if np.shape(m) != np.shape(l):
              raise ValueError("Input matrices are different sizes")
          if np.array_equal(m, l):
              # print("Trajectory %s and %s are equal" % (m, l))
              distance = 0
          else:
              distance = np.array(np.sum(cdist(m, l)), dtype=np.float32)
  
          return distancf compute_distance(m, l):
          '''Compute distance between two trajectories
  
          Returns
          -------
          numpy.ndarray
          '''
  
          if np.shape(m) != np.shape(l):
              raise ValueError("Input matrices are different sizes")
          if np.array_equal(m, l):
              # print("Trajectory %s and %s are equal" % (m, l))
              distance = 0
          else:
              distance = np.array(np.sum(cdist(m, l)), dtype=np.float32)
  
          return distance
docs: Compute distance between two trajectories
  
          Returns
          -------
          numpy.ndarray