def set_state(state: fos.StateDescription):
    """Set the current state.

    Args:
        state: a :class:`fiftyone.core.state.StateDescription` instance
    """
    global _state
    _state = state
Set the current state.

    Args:
        state: a :class:`fiftyone.core.state.StateDescription` instance
    
fiftyone/server/events/state.py