docs: def decode(slug):
      """
      Returns the uuid.UUID object represented by the given v4 or "nice" slug
      """
      if sys.version_info.major != 2 and isinstance(slug, bytes):
          slug = slug.decode('ascii')
      slug = slug + '=='  # base64 padding
      return uuid.UUID(bytes=base64.urlsafe_b64decode(slug))