def _match_emr_bootstrap_stderr_path(path, node_id=None, action_num=None):
 m = _EMR_BOOTSTRAP_STDERR_PATH_RE.match(path)
 if (not m):
  return
 result = _extract_action_num_and_node_id(m)
 if ((action_num is not None) and (action_num != result['action_num'])):
  return None
 if ((node_id is not None) and (node_id != result['node_id'])):
  return None
 return result

def _match_emr_bootstrap_stderr_path ( path , node_id = None , action_num = None ) : m = _EMR_BOOTSTRAP_STDERR_PATH_RE . match ( path ) if ( not m ) : return result = _extract_action_num_and_node_id ( m ) if ( ( action_num is not None ) and ( action_num != result [ 'action_num' ] ) ) : return None if ( ( node_id is not None ) and ( node_id != result [ 'node_id' ] ) ) : return None return result
if *path* corresponds to a bootstrap stderr file .