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