def star_output_mode(cluster, logdir, cmdline, *args):
    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)
Select output mode: [stream|ordered|off]
dataset/ETHPy150Open radssh/radssh/radssh/star_commands.py/star_output_mode