def addJobOutput(job, output, output_type='dataset', save=True):
    mm = jobMM(job)
    outputs = mm.get('outputs', [])
    job_output = None
    if output_type == 'dataset':
        job_output = {
            'type': 'dataset',
            'dataset_id': output.get('_id')
        }
    else:
        raise NotImplementedError(output_type % 'unknown job output %s')
    outputs.append(job_output)
    mm['outputs'] = outputs
    jobMM(job, mm, save)
dataset/ETHPy150Open Kitware/minerva/server/utility/minerva_utility.py/addJobOutput/swapped operands of `%`