code: def wait(self, **kwargs):
          
          return self.client.api.wait(self.id, **kwargs)
docs: Block until the container stops, then return its exit code. Similar to
          the ``docker wait`` command.
  
          Args:
              timeout (int): Request timeout
              condition (str): Wait until a container state reaches the given
                  condition, either ``not-running`` (default), ``next-exit``,
                  or ``removed``
  
          Returns:
              (dict): The API's response as a Python dictionary, including
                  the container's exit code under the ``StatusCode`` attribute.
  
          Raises:
              :py:class:`requests.exceptions.ReadTimeout`
                  If the timeout is exceeded.
              :py:class:`docker.errors.APIError`
                  If the server returns an error.