code: def _cost_matrix_no_region(x, y, dist):
      n_timestamps_1, n_timestamps_2 = x.size, y.size
      cost_mat = np.empty((n_timestamps_1, n_timestamps_2))
      for j in prange(n_timestamps_2):
          for i in prange(n_timestamps_1):
              cost_mat[i, j] = dist(x[i], y[j])
      return cost_mat
  
imports: import numpy
  from math import ceil, log2, sqrt
  from numba import njit, prange
  from sklearn.utils import check_array
label_desc: Use image node_id 5 for calling a global function with example usage: _cost_matrix_no_region(x, y, dist) and returns: cost_mat