from typing import Dict


def _parse_job_run_statuses(list_jobs_string: str) -> Dict[str, str]:
    """Parse the list_jobs string to return job run status."""
    job_statuses = {}
    # first three is table start and header row, last one is table end
    rows = list_jobs_string.splitlines()[3:-1]
    for r in rows:
        segments = [s.strip() for s in r.split("|")]
        job_statuses[segments[1]] = segments[3]
    return job_statuses