def METHOD_NAME(cls, buffer, id=None):
    """Load instance with given `id` from `buffer`.
    Arguments:
        buffer: Bytes or bytearray object to load the instance from.
        id: ID of instance to load.  May be omitted if `buffer` only
            holds one instance.
    Returns:
        New instance.
    """
    return instance_from_dict(
        pyyaml.safe_load(buffer),
        id,
        check_storages=False,
    )