def METHOD_NAME(stream: BinaryIO, **kwargs) -> Any:
    """Deserialize bytes from stream into an object.
    Args:
        stream: Stream to write serialized data to
        kwargs: Arguments passed to msgpack.unpackb
    Returns:
        Deserialized object
    """
    data = stream.read()
    return deserialize(data, **kwargs)