class_docstr: Implement a ketama compatible consistent hashing ring.
docstr: Returns a ketama compatible hash from the given key.
code: def hashi(self, key, replica=0):
      """Returns a ketama compatible hash from the given key."""
      dh = self._listbytes(md5(str(key).encode("utf-8")).digest())
      rd = replica * 4
      return (
          (dh[3 + rd] << 24)
          | (dh[2 + rd] << 16)
          | (dh[1 + rd] << 8)
          | dh[0 + rd]
      )
  
file_path: mars/mars/lib/uhashring/ring_ketama.py
imports: from bisect import insort
  from collections import Counter
  from hashlib import md5
  from sys import version_info
label_desc: Use image node_id 2 for calling the KetamaRing obj's underlying member method code with example usage: obj.hashi(key, replica) and returns: unknown