class_docstr: Hasher: to initialize a md5 with salt.
docstr: Returns 128 bits hash of given key.
  
  Args:
    key (bytes, string or anything convertible to a string): key to be hashed.
      If the key is a string, it will be encoded to bytes using utf-8. If the
      key is neither a string nor bytes, it will be converted to a str, then
      to bytes. This means that `"1"` (str) and `1` (int) will have the same
      hash. The intent of the hash being to shuffle keys, it is recommended
      that all keys of a given set to shuffle use a single type.
  
  Returns:
    128 bits integer, hash of key.
docstr_tok: ["Returns","128","bits","hash","of","given","key",".","Args",":","key","(","bytes",",","string","or","anything","convertible","to","a","string",")",":","key","to","be","hashed",".","If","the","key","is","a","string",",","it","will","be","encoded","to","bytes","using","utf-8",".","If","the","key","is","neither","a","string","nor","bytes",",","it","will","be","converted","to","a","str",",","then","to","bytes",".","This","means","that","`","``","1","''","`","(","str",")","and","`","1","`","(","int",")","will","have","the","same","hash",".","The","intent","of","the","hash","being","to","shuffle","keys",",","it","is","recommended","that","all","keys","of","a","given","set","to","shuffle","use","a","single","type",".","Returns",":","128","bits","integer",",","hash","of","key","."]
code: def hash_key(self, key: HashKey) -> int:
      """Returns 128 bits hash of given key.
  
      Args:
        key (bytes, string or anything convertible to a string): key to be hashed.
          If the key is a string, it will be encoded to bytes using utf-8. If the
          key is neither a string nor bytes, it will be converted to a str, then
          to bytes. This means that `"1"` (str) and `1` (int) will have the same
          hash. The intent of the hash being to shuffle keys, it is recommended
          that all keys of a given set to shuffle use a single type.
  
      Returns:
        128 bits integer, hash of key.
      """
      md5 = self._md5.copy()
      md5.update(_to_bytes(key))
      return int(md5.hexdigest(), 16)
  
imports: import hashlib
  from typing import Union
  import numpy
label_desc: Use image node_id 2 for calling the Hasher obj's underlying member method code with example usage: obj.hash_key(key) and returns: int