code: def wait_init(self):
          
          init_done = self.init_done.wait(timeout=self.init_wait_timeout)
          if not init_done:
              if hasattr(self, "peek"):
                  app = self.config.get("application")
                  if app:
                      bef_init_cmds = app.get("cli_ready_trigger")
                      if bef_init_cmds in self.peek():  # pylint: disable=no-member
                          init_done = True
          return init_done
docs: Block until init_done flag is set or until init_wait_timeout happens.
  
          :return: value of init_done