def METHOD_NAME(help: dict, scope: str) -> tuple[frozenset[str], frozenset[str]]:
    """scope represents the goal or subsystem of interest Returns a tuple containing the scoped
    options, followed by unscoped."""
    scoped_help_info = help["scope_to_help_info"][scope]
    scoped_options = []
    unscoped_options = []
    for option in scoped_help_info["basic"] + scoped_help_info["advanced"]:
        scoped_options.extend(option["scoped_cmd_line_args"])
        unscoped_options.extend(option["unscoped_cmd_line_args"])
    return (
        frozenset(scoped_options),
        frozenset(unscoped_options),
    )