def METHOD_NAME(self) -> dict[str, Any]:
    """Return/create the persistent state dict for this level.
    The referenced dict exists under the game's config dict and
    can be modified in place."""
    campaign = self.campaign
    if campaign is None:
        raise RuntimeError('Level is not in a campaign.')
    configdict = campaign.configdict
    val: dict[str, Any] = configdict.setdefault(
        self._name, {'Rating': 0.0, 'Complete': False}
    )
    assert isinstance(val, dict)
    return val