class_docstr: Implement a ketama compatible consistent hashing ring.
docstr: Create a new HashRing.
code: def __init__(self):
      """Create a new HashRing."""
      self._distribution = Counter()
      self._keys = []
      self._nodes = {}
      self._replicas = 4
      self._ring = {}
  
      if version_info >= (3,):
          self._listbytes = lambda x: x
  
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 1 to create a new KetamaRing object from inherited base classes: object with example: obj = KetamaRing()