def METHOD_NAME(argv: Sequence[str]):
    parser = get_parser()
    arguments = parser.parse_args(argv)
    verbose = arguments.v
    set_loglevel(verbose=verbose)
    input_filename = arguments.i
    if arguments.o is not None:
        output_filename = arguments.o
    else:
        output_filename = add_suffix(input_filename, '_gmseg')
    use_tta = arguments.t
    model_name = arguments.m
    threshold = arguments.thr
    if threshold > 1.0 or threshold < 0.0:
        raise RuntimeError("Threshold should be between 0.0 and 1.0.")
    # Threshold zero means no thresholding
    if threshold == 0.0:
        threshold = None
    out_fname = segment_file(input_filename, output_filename,
                             model_name, threshold, int(verbose),
                             use_tta)
    path_qc = arguments.qc
    qc_dataset = arguments.qc_dataset
    qc_subject = arguments.qc_subject
    if path_qc is not None:
        generate_qc(fname_in1=input_filename, fname_seg=out_fname, args=argv, path_qc=os.path.abspath(path_qc),
                    dataset=qc_dataset, subject=qc_subject, process='sct_deepseg_gm')
    display_viewer_syntax(
        [input_filename, format(out_fname)],
        im_types=['anat', 'seg'],
        opacities=['1', '0.7'],
        verbose=verbose,
    )