def contain(self, sketch, x):
    """Check if the sketch contains x.

    Args:
      sketch: sketch to add xs to
      x: name or id in string

    Returns:
      True or False
    """
    assert self.depth, self.width == sketch.shape
    x = str(x)
    if x not in self.cache:
      self.cache[x] = [self._hash(x, i) for i in range(self.depth)]
    for i in range(self.depth):
      if sketch[i, self.cache[x][i]] == 0.0:
        return False
    return True
Check if the sketch contains x.

    Args:
      sketch: sketch to add xs to
      x: name or id in string

    Returns:
      True or False
    
language/emql/cm_sketch.py