def _create_helper(use_status_line=True, show_toggle=False):
    from Arknights.helper import ArknightsHelper
    _ensure_device()
    frontend = ShellNextFrontend(use_status_line, show_toggle)
    helper = ArknightsHelper(device_connector=device, frontend=frontend)
    if use_status_line:
        context = frontend.statusline
    else:
        from contextlib import nullcontext
        context = nullcontext()
    return (helper, context)
def _create_helper(use_status_line=True, show_toggle=False):
    from Arknights.helper import ArknightsHelper
    _ensure_device()
    frontend = ShellNextFrontend(use_status_line, show_toggle)
    helper = ArknightsHelper(device_connector=device, frontend=frontend)
    if use_status_line:
        context = frontend.statusline
    else:
        from contextlib import nullcontext
        context = nullcontext()
    return (helper, context)