code: def hash(self, algorithm: Algorithm = None) -> str:  # noqa: A003
          
          key = self._validate_enum(algorithm, Algorithm)
  
          if hasattr(hashlib, key):
              fn = getattr(hashlib, key)
              return fn(self.uuid().encode()).hexdigest()
docs: Generate random hash.
  
          To change hashing algorithm, pass parameter ``algorithm``
          with needed value of the enum object :class:`~mimesis.enums.Algorithm`
  
          :param algorithm: Enum object :class:`~mimesis.enums.Algorithm`.
          :return: Hash.
          :raises NonEnumerableError: if algorithm is not supported.