def METHOD_NAME(update):
    """Convert update string to dict format
    String format must be <attr name>=<value>
    """
    attribute, value = update.split("=")
    if attribute not in VALID_UPDATE_ATTRS:
        raise ValueError(
            f"Invalid update attribute `{attribute}`. Must be one of {VALID_UPDATE_ATTRS}"
        )
    return {attribute: value}