code: def wait_not_displayed(element, timeout=None, fail_on_timeout=None):
      
      return wait(lambda: not element.is_displayed(), timeout or element.wait_timeout, fail_on_timeout)
docs: Wait until element becomes invisible or time out.
      Returns true is element became invisible, otherwise false.
      If timeout is not specified or 0, then uses specific element wait timeout.
      :param element:
      :param timeout:
      :param fail_on_timeout:
      :return: