<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rename(self, name):
 """ Rename this container. Similar to the ``docker rename`` command. Args: name (str):
 New name for the container Raises: :py:class:`docker.errors.APIError` If the server returns an error. """

        return self.client.api.rename(self.id, name)