code: def update(self, other=None, **kwargs):
          
          if other is not None:
              if self._same_redis(other, RedisCollection):
                  self._update_helper(other, use_redis=True)
              elif hasattr(other, 'keys'):
                  self._update_helper(other)
              else:
                  self._update_helper({k: v for k, v in other})
  
          if kwargs:
              self._update_helper(kwargs)
docs: Update the dictionary with the key/value pairs from *other*,
          overwriting existing keys. Return :obj:`None`.
  
          :func:`update` accepts either another dictionary object or
          an iterable of key/value pairs (as tuples or other iterables
          of length two). If keyword arguments are specified, the
          dictionary is then updated with those key/value pairs:
          ``d.update(red=1, blue=2)``.