code: def update(self, fields=None, **kwargs):
          
          kwargs = kwargs.copy()  # shadow the passed-in kwargs
          kwargs.update(self._server_config.get_client_kwargs())
          # a content upload is always multipart
          headers = kwargs.pop('headers', {})
          headers['content-type'] = 'multipart/form-data'
          kwargs['headers'] = headers
          return client.put(
              self.path('self'),
              fields,
              **kwargs
          )
docs: Update the current entity.
  
          Make an HTTP PUT call to ``self.path('base')``. Return the response.
  
          :param fields: An iterable of field names. Only the fields named in
              this iterable will be updated. No fields are updated if an empty
              iterable is passed in. All fields are updated if ``None`` is passed
              in.
          :return: A ``requests.response`` object.