def to_uuid(b: bytes) ->str:
    """Convert bytes to string representation of uuid.

    The bytes are reversed first."""
    s = b[::-1].hex()
    return '-'.join((s[:8], s[8:12], s[12:16], s[16:20], s[20:]))
