class_docstr: Lightweight class that maintains a basic queue of operations, in addition
  to metadata annotations.
docstr: Update ``obj``'s metadata with ``kwargs`` if it exists in the queue.
docstr_tok: ["Update","``","obj","``","'s","metadata","with","``","kwargs","``","if","it","exists","in","the","queue","."]
code: def update_info(self, obj, **kwargs):
      """Update ``obj``'s metadata with ``kwargs`` if it exists in the queue."""
      obj = obj if isinstance(obj, WrappedObj) else WrappedObj(obj)
      if obj in self:
          self[obj].update(kwargs)
  
imports: import copy
  from collections import OrderedDict
  from contextlib import contextmanager
  from threading import RLock
  from typing import Optional
label_desc: Use image node_id 5 for calling the AnnotatedQueue obj's underlying member method code with example usage: obj.update_info(obj) without return types