def _hash(self, x, i):
    """Get the i'th hash value of element x.

    Args:
      x: name or id in string
      i: the i'th hash function

    Returns:
      hash result
    """
    assert isinstance(x, str)
    assert isinstance(i, int)
    assert i >= 0 and i < self.depth
    hash_val = hash((i, x))
    return hash_val % self.width
Get the i'th hash value of element x.

    Args:
      x: name or id in string
      i: the i'th hash function

    Returns:
      hash result
    
language/emql/cm_sketch.py