def as_frozen(self) -> FrozenLocalStateRequest[_T]:
    """Initializes the parameter, returning an equivalent frozen one."""
    return FrozenLocalStateRequest(
        state=self.state_initializer(),
        name=self.name,
        category=self.category,
    )
Initializes the parameter, returning an equivalent frozen one.
penzai/deprecated/v1/data_effects/local_state.py