class_docstr: Dict-like mapping from SharedVariable keys to their new values.
  
  This mapping supports the use of the "+" operator for the union of updates.
class_docstr_tok: ["Dict-like","mapping","from","SharedVariable","keys","to","their","new","values",".","This","mapping","supports","the","use","of","the","``","+","''","operator","for","the","union","of","updates","."]
code: def update(self, other=None):
      if other is None:
          return
      if (
          isinstance(other, dict)
          and len(other) > 1
          and not isinstance(other, OrderedDict)
      ):
          # Warn about non-determinism.
          warnings.warn(
              "Updating an `OrderedUpdates` with a "
              "non-ordered dictionary with 2+ elements could "
              "make your code non-deterministic",
              stacklevel=2,
          )
      for key, val in iteritems(OrderedDict(other)):
          if key in self:
              if self[key] == val:
                  continue
              raise KeyError("Collision", key)
          self[key] = val
  
file_path: Theano/theano/updates.py
imports: from __future__ import absolute_import, print_function, division
  from collections import OrderedDict
  from six import iteritems
  from theano.compile.sharedvalue import SharedVariable
  import logging
  import warnings
label_desc: Use image node_id 3 for calling the OrderedUpdates obj's underlying member method code with example usage: obj.update(other) without return types