def update(label_ids):
    """Set the active labels for the current context by passing in a list
        of label IDs.
        Labels which where activated before but are not in the ``label_ids``
        are purged.
        """
