def get_hashes(self, x):
    """Get the hash values of x.

    Each element is hashed w times, where w is the width of the count-min
    sketch specified in the constructor of CountMinContext. This function
    returns w hash values of element x.

    Args:
      x: name or id in string

    Returns:
      a list of hash values with the length of depth
    """
    x = str(x)
    if x not in self.cache:
      self.cache[x] = [self._hash(x, i) for i in range(self.depth)]
    return self.cache[x]
Get the hash values of x.

    Each element is hashed w times, where w is the width of the count-min
    sketch specified in the constructor of CountMinContext. This function
    returns w hash values of element x.

    Args:
      x: name or id in string

    Returns:
      a list of hash values with the length of depth
    
language/emql/cm_sketch.py