def METHOD_NAME():
    parser = _build_arg_parser()
    args = parser.parse_args()
    args.in_models_directories = [os.path.join(args.in_directory, x)
                                  for x in os.listdir(args.in_directory)
                                  if os.path.isdir(os.path.join(args.in_directory, x))]
    assert_inputs_exist(parser, args.in_tractograms +
                        [args.in_config_file,
                         args.in_transfo])
    for in_tractogram in args.in_tractograms:
        ext = os.path.splitext(in_tractogram)[1]
        if ext not in ['.trk', '.trx'] and args.reference is None:
            parser.error('A reference is needed for {} file'.format(ext))
    for directory in args.in_models_directories:
        if not os.path.isdir(directory):
            parser.error('Input folder {0} does not exist'.format(directory))
    assert_output_dirs_exist_and_empty(parser, args, args.out_dir)
    file_handler = logging.FileHandler(filename=os.path.join(args.out_dir,
                                                             'logfile.txt'))
    formatter = logging.Formatter(fmt='%(asctime)s, %(name)s %(levelname)s %(message)s',
                                  datefmt='%H:%M:%S')
    file_handler.setFormatter(formatter)
    logging.getLogger().setLevel(args.log_level)
    logging.getLogger().addHandler(file_handler)
    coloredlogs.install(level=args.log_level)
    transfo = load_matrix_in_any_format(args.in_transfo)
    if args.inverse:
        transfo = np.linalg.inv(load_matrix_in_any_format(args.in_transfo))
    with open(args.in_config_file) as json_data:
        config = json.load(json_data)
    # For code simplicity, it is still RecobundlesX class and all, but
    # the last pruning step was modified to be in line with BundleSeg.
    voting = VotingScheme(config, args.in_models_directories,
                          transfo, args.out_dir,
                          minimal_vote_ratio=args.minimal_vote_ratio)
    voting(args.in_tractograms, nbr_processes=args.nbr_processes,
           seed=args.seed, reference=args.reference)