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)
Convert a discovery name to a suitable Java class name.
dataset/ETHPy150Open radssh/radssh/radssh/star_commands.py/star_output_mode--crossover with--dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/java_generator.py/JavaApi.ToClassName