Set a specific state value
This is a method of the Session class in the session module.
def set_state(key: str, value: Any) -> None