def METHOD_NAME(self, config):
    """
    Sets all attributes in a dictionary *config* to this instance. This can be understand as the
    counterpart of :py:meth:`get_persistent_config`.
    """
    for attr, value in six.iteritems(config):
        if hasattr(self, attr):
            setattr(self, attr, value)