def compute_helpful_vars(job_dict, dirs):
    """
    Helper function, that adds what (I see as) helpful variables to
    your job dictionary.
    :param job_dict: a dictionary representing a row. for example, if
    you had a csv file with rows [sub,ses,task,run,order_id], and also
    defined globals [conda_env_path, matlab_path], you would get a dict
    {
        sub: NIDA2322 ses: 1, task: "rest", run: 2, order_id:5,
        conda_env_path:"/project2/conda/myenv", matlab_path:"/usr/bin/matlab"
    }
    :param dirs: output of ..utils.io:calculate_directories()
    :return: augmented job_dict
    """

    job_dict["job_id"] = "%05d" % job_dict["order_id"]

    # for bids
    if "run" in job_dict.keys():
        job_dict["run_id"] = "%02d" % job_dict["run"]

    return job_dict