code: def uuid5(namespace, name):
      
      from hashlib import sha1
      hash = sha1(namespace.bytes + name).digest()
      return UUID(bytes=hash[:16], version=5)
docs: Generate a UUID from the SHA-1 hash of a namespace UUID and a name.