def wait(self, timeout=None):
timeout = ["<STR_LIT>" % timeout] if timeout else []<EOL>cmdline = ["<STR_LIT>", "<STR_LIT>"] + timeout + [self._id or self.get_id()]<EOL>return run_cmd(cmdline, return_output=True)<EOL>
Block until the container stops, then return its exit code. Similar to
the ``podman wait`` command.

:param timeout: int, microseconds to wait before polling for completion
:return: int, exit code