def wait_gone(self, timeout=None, raise_error=True):
start_time = time.time()<EOL>if timeout is None or timeout <= <NUM_LIT:0>:<EOL><INDENT>timeout = self.timeout<EOL><DEDENT>while start_time + timeout > time.time():<EOL><INDENT>if not self.exists:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>if not raise_error:<EOL><INDENT>return False<EOL><DEDENT>raise WDAElementNotDisappearError("<STR_LIT>")<EOL>
Args:
    timeout (float): default timeout
    raise_error (bool): return bool or raise error

Returns:
    bool: works when raise_error is False

Raises:
    WDAElementNotDisappearError