def METHOD_NAME(line):
  """Returns (job_id, location) from matched log."""
  job_id_pattern = re.compile(_DATAFLOW_JOB_ID_PATTERN)
  matched_job_id = job_id_pattern.search(line or '')
  if matched_job_id:
    return (
        matched_job_id.group('job_id').decode(),
        matched_job_id.group('location').decode(),
    )
  return (None, None)