def METHOD_NAME(cluster, dirname, weekly):
    print('TESTING: run lbann with model, optimizer, but no reader; lbann should throw exception\n')
    (_, model_path, optimizer_path) = get_default_parameters(dirname, two_models=False)
    (output_file_name, error_file_name) = get_file_names(dirname, 'missing_reader')
    command = tools.get_command(
        cluster=cluster,
        exit_after_setup=True,
        model_path=model_path, optimizer_path=optimizer_path,
        num_processes=1,
        output_file_name=output_file_name,
        error_file_name=error_file_name
    )
    return_code = os.system(command)
    tools.assert_failure(return_code,
                         'you specified 1 model filenames, and 0 reader filenames; you must specify 1 reader filenames',
                         error_file_name)