def _match_task_log_path(path, application_id=None, job_id=None):
 m = _PRE_YARN_TASK_LOG_PATH_RE.match(path)
 if m:
  if (job_id and (job_id != _to_job_id(m.group('attempt_id')))):
   return None
  return dict(attempt_id=m.group('attempt_id'), log_type=m.group('log_type'))
 m = _YARN_TASK_LOG_PATH_RE.match(path)
 if m:
  if (application_id and (application_id != m.group('application_id'))):
   return None
  return dict(application_id=m.group('application_id'), container_id=m.group('container_id'), log_type=m.group('log_type'))
 return None

def _match_task_log_path ( path , application_id = None , job_id = None ) : m = _PRE_YARN_TASK_LOG_PATH_RE . match ( path ) if m : if ( job_id and ( job_id != _to_job_id ( m . group ( 'attempt_id' ) ) ) ) : return None return dict ( attempt_id = m . group ( 'attempt_id' ) , log_type = m . group ( 'log_type' ) ) m = _YARN_TASK_LOG_PATH_RE . match ( path ) if m : if ( application_id and ( application_id != m . group ( 'application_id' ) ) ) : return None return dict ( application_id = m . group ( 'application_id' ) , container_id = m . group ( 'container_id' ) , log_type = m . group ( 'log_type' ) ) return None
is this the path/uri of a task log? if so .