class_docstr: Test conversion of queues to DAGs
class_docstr_tok: ["Test","conversion","of","queues","to","DAGs"]
docstr: Changing nodes in the graph.
docstr_tok: ["Changing","nodes","in","the","graph","."]
code: def test_update_node(self, ops, obs):
      """Changing nodes in the graph."""
  
      circuit = CircuitGraph(ops, obs, Wires([0, 1, 2]))
      new = qml.RX(0.1, wires=0)
      circuit.update_node(ops[0], new)
      assert circuit.operations[0] is new
  
imports: import io
  import contextlib
  import numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.resource import ResourcesOperation, Resources
  from pennylane.circuit_graph import CircuitGraph
  from pennylane.wires import Wires
label_desc: Use image node_id 5 for calling the TestCircuitGraph obj's underlying member method code with example usage: obj.test_update_node(ops, obs) without return types