<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_action_profile(x, indptr):
 """ Obtain a tuple of mixed actions from a flattened action profile. Parameters x : array_like(float, ndim=1) Array of flattened mixed action profile of length equal to n_0 + i's mixed action. indptr : array_like(int, ndim=1) Array of index pointers of length N+1, where `indptr[0] = 0` and `indptr[i+1] = indptr[i] + n_i`. Returns ------- action_profile : tuple(ndarray(float, ndim=1)) Tuple of N mixed actions, each of length n_i. """

    N = len(indptr) - 1
    action_profile = tuple(x[indptr[i]:indptr[i+1]] for i in range(N))
    return action_profile