<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self, node_spec):
 """ Update the node's configuration. Args: node_spec (dict):
 Configuration settings to update. Any values not provided will be removed. Default: ``None`` Returns: `True` if the request went through. Raises: :py:class:`docker.errors.APIError` If the server returns an error. Example: 'Name': 'node-name', 'Role': 'manager', 'Labels': {'foo': 'bar'} } """

        return self.client.api.update_node(self.id, self.version, node_spec)