def METHOD_NAME(args):
    from PartSeg import ANALYSIS_NAME, APP_NAME, MASK_NAME
    from PartSegImage import TiffImageReader
    if args.gui == "roi_analysis" or args.mf:
        from PartSeg import plugins
        plugins.register()
        from PartSeg._roi_analysis.main_window import MainWindow
        title = f"{APP_NAME} {ANALYSIS_NAME}"
        if args.image:
            image = TiffImageReader.read_image(args.image, args.mask)
            MainWindow = partial(MainWindow, initial_image=image)
        wind = MainWindow(title=title)
        if args.batch:
            wind.main_menu.batch_window()
        return wind
    if args.gui == "roi_mask":
        from PartSeg import plugins
        plugins.register()
        from PartSeg._roi_mask.main_window import MainWindow
        title = f"{APP_NAME} {MASK_NAME}"
        if args.image:
            image = TiffImageReader.read_image(args.image)
            MainWindow = partial(MainWindow, initial_image=image)
        return MainWindow(title=title)
    from PartSeg._launcher.main_window import MainWindow
    title = f"{APP_NAME} Launcher"
    return MainWindow(title=title)