def is_reserved(name: str, /) -> bool:
    """
    Check if the name is reserved for state group.
    """

    return name in frozenset(
        (
            "parent",
            "children",
            "states",
            "first",
            "last",
            "all_state_names",
            "all_state_objects",
            "all_children",
            "_group_name",
            "full_group_name",
        )
    )