def srun(arg_dict,qos=True,time=10,mem=4):

    """Return srun call, with certain parameters appended.

    Arguments:
    ----------
    arg_dict : dict
        Dictionary of arguments passed into this script, which is used to append parameters to srun call.
    qos : bool, optional
        Quality of service, set to True for interactive jobs, to increase likelihood of scheduling.
    mem : int, optional
        The memory in GB (per node) to use for this call.
    time : str, optional
        Time limit to use for this call, in the form d-hh:mm:ss.

    Returns:
    --------
    call : str
        srun call with arguments appended."""

    call = 'srun --time={0} --mem={1}GB --partition={2} --account={3}'.format(time,mem,arg_dict['partition'],arg_dict['account'])
    if qos:
        call += ' --qos qos-interactive'
    if arg_dict['exclude'] != '':
        call += ' --exclude={0}'.format(arg_dict['exclude'])
    if arg_dict['reservation'] != '':
        call += ' --reservation={0}'.format(arg_dict['reservation'])

    return call