code: def edit(self, **kwargs):
          
          if 'id' not in kwargs:
              kwargs['id'] = self.ratingKey
          if 'type' not in kwargs:
              kwargs['type'] = utils.searchType(self.type)
  
          part = '/library/sections/%s/all?%s' % (self.librarySectionID,
                                                  urlencode(kwargs))
          self._server.query(part, method=self._server._session.put)
docs: Edit an object.
  
              Parameters:
                  kwargs (dict): Dict of settings to edit.
  
              Example:
                  {'type': 1,
                   'id': movie.ratingKey,
                   'collection[0].tag.tag': 'Super',
                   'collection.locked': 0}