def _extract_action_num_and_node_id(m):
 return dict(action_num=(int(m.group('action_num')) - 1), node_id=m.group('node_id'))

def _extract_action_num_and_node_id ( m ) : return dict ( action_num = ( int ( m . group ( 'action_num' ) ) - 1 ) , node_id = m . group ( 'node_id' ) )
helper method: extract *action_num* and *node_id* from the given regex match .