def METHOD_NAME():
    parser = _build_arg_parser()
    args = parser.parse_args()
    if args.verbose:
        logging.getLogger().setLevel(logging.INFO)
    assert_inputs_exist(parser, args.in_bundle)
    assert_outputs_exist(parser, args, args.out_bundle)
    sft = load_tractogram_with_reference(parser, args, args.in_bundle)
    if args.auto:
        uniformize_bundle_sft(sft, None, swap=args.swap)
    if args.centroid:
        centroid_sft = load_tractogram_with_reference(parser, args,
                                                      args.centroid)
        uniformize_bundle_sft(sft, args.axis, swap=args.swap,
                              ref_bundle=centroid_sft)
    if args.target_roi:
        img = nib.load(args.target_roi[0])
        atlas = get_data_as_labels(img)
        if len(args.target_roi) == 1:
            mask = atlas > 0
        else:
            mask = merge_labels_into_mask(atlas, " ".join(args.target_roi[1:]))
        # Uncomment if the user wants to filter the streamlines
        # sft, _ = filter_grid_roi(sft, mask, 'either_end', False)
        uniformize_bundle_sft_using_mask(sft, mask, swap=args.swap)
    if args.axis:
        uniformize_bundle_sft(sft, args.axis, swap=args.swap)
    save_tractogram(sft, args.out_bundle)