def handle_group_id(
    state: fos.StateDescription, group_id: t.Optional[str] = None
):
    """Handle a group id.

    Args:
        state: the state description
        group_id (None): an optional group ID

    Returns:
        True/False indicating if a state update event should be dispatched
    """
    if state.group_id != group_id:
        if group_id is not None:
            state.group_id = group_id
            return True

    return False
Handle a group id.

    Args:
        state: the state description
        group_id (None): an optional group ID

    Returns:
        True/False indicating if a state update event should be dispatched
    
fiftyone/server/events/initialize.py