code: def _project_cost_matrix_region(cost_mat, region):
      n_timestamps_1, n_timestamps_2 = cost_mat.shape
      cost_mat_projected = np.full(
          (n_timestamps_1, n_timestamps_2), np.inf
      )
      for i in prange(n_timestamps_1):
          for j in prange(region[0, i], region[1, i]):
              cost_mat_projected[i, j] = cost_mat[i, j]
      return cost_mat_projected
  
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 4 for calling a global function with example usage: _project_cost_matrix_region(cost_mat, region) and returns: cost_mat_projected