<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def restart(self, **kwargs):
 """ Restart this container. Similar to the ``docker restart`` command. Args: timeout (int):
 Number of seconds to try to stop for before killing the container. Once killed it will then be restarted. Default is 10 seconds. Raises: :py:class:`docker.errors.APIError` If the server returns an error. """

        return self.client.api.restart(self.id, **kwargs)