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

def _get_action_profile ( x , indptr ) : N = ( len ( indptr ) - 1 ) action_profile = tuple ( ( x [ indptr [ i ] : indptr [ ( i + 1 ) ] ] for i in range ( N ) ) ) return action_profile
obtain a tuple of mixed actions from a flattened action profile .