class_docstr: Tests for the apply function
class_docstr_tok: ["Tests","for","the","apply","function"]
docstr: Test applying a measurement instantiated inside a queuing context
  to an existing active queue
docstr_tok: ["Test","applying","a","measurement","instantiated","inside","a","queuing","context","to","an","existing","active","queue"]
code: def test_default_queue_measurements_inside(self, obs):
      """Test applying a measurement instantiated inside a queuing context
      to an existing active queue"""
  
      with qml.queuing.AnnotatedQueue() as q:
          op1 = qml.expval(obs)
          op2 = qml.apply(op1)
  
      tape = qml.tape.QuantumScript.from_queue(q)
      assert tape.measurements == [op1, op2]
  
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 5 for calling the TestApplyOp obj's underlying member method code with example usage: obj.test_default_queue_measurements_inside(obs) without return types