def METHOD_NAME(argv: Sequence[str]):
    parser = get_parser()
    arguments = parser.parse_args(argv)
    verbose = arguments.v
    set_loglevel(verbose=verbose)
    if arguments.p == 'sct_deepseg_lesion' and arguments.plane is None:
        parser.error('Please provide the plane of the output QC with -plane')
    generate_qc(fname_in1=arguments.i,
                fname_in2=arguments.d,
                fname_seg=arguments.s,
                # Internal functions use capitalized strings ('Axial'/'Sagittal')
                plane=arguments.plane.capitalize() if isinstance(arguments.plane, str) else arguments.plane,
                args=f'("sct_qc {list2cmdline(argv)}")',
                path_qc=arguments.qc,
                dataset=arguments.qc_dataset,
                subject=arguments.qc_subject,
                process=arguments.p,
                fps=arguments.fps,)