class_docstr: Tests for the annotated queue class
class_docstr_tok: ["Tests","for","the","annotated","queue","class"]
docstr: Test that update_info correctly updates an annotation
docstr_tok: ["Test","that","update_info","correctly","updates","an","annotation"]
code: def test_update_info(self):
      """Test that update_info correctly updates an annotation"""
      A = qml.RZ(0.5, wires=1)
  
      with AnnotatedQueue() as q:
          q.append(A, inv=True)
          assert QueuingManager.get_info(A) == {"inv": True}
  
          QueuingManager.update_info(A, key="value1")
  
      # should pass silently because no longer recording
      QueuingManager.update_info(A, key="value2")
  
      assert q.get_info(A) == {"inv": True, "key": "value1"}
  
      q.update_info(A, inv=False, owner=None)
      assert q.get_info(A) == {
          "inv": False,
          "owner": None,
          "key": "value1",
      }
  
imports: from multiprocessing.dummy import Pool
  import pytest
  import numpy
  import pennylane
  from pennylane.queuing import AnnotatedQueue, QueuingManager, QueuingError, WrappedObj
label_desc: Use image node_id 9 for calling the TestAnnotatedQueue obj's underlying member method code with example usage: obj.test_update_info() without return types