def star_output_mode(cluster, logdir, cmdline, *args):
    '''Select output mode: [stream|ordered|off]'''
    modes = ('stream', 'ordered', 'off')
    if args[0] not in modes:
        raise ValueError('Output mode must be one of: %s' % repr(modes))
    cluster.output_mode = args[0]
    print('Output mode set to %s' % cluster.output_mode)
dataset/ETHPy150Open radssh/radssh/radssh/star_commands.py/star_output_mode/original