class_docstr: Tests for the apply function
class_docstr_tok: ["Tests","for","the","apply","function"]
docstr: Test applying an operation instantiated outside a queuing context
  to a specfied queuing context
docstr_tok: ["Test","applying","an","operation","instantiated","outside","a","queuing","context","to","a","specfied","queuing","context"]
code: def test_different_queue_operation_outside(self):
      """Test applying an operation instantiated outside a queuing context
      to a specfied queuing context"""
      op = qml.PauliZ(0)
  
      with qml.queuing.AnnotatedQueue() as q1:
          with qml.queuing.AnnotatedQueue() as q2:
              qml.apply(op, q1)
  
          tape2 = qml.tape.QuantumScript.from_queue(q2)
      tape1 = qml.tape.QuantumScript.from_queue(q1)
      assert tape1.operations == [op]
      assert tape2.operations == []
  
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 7 for calling the TestApplyOp obj's underlying member method code with example usage: obj.test_different_queue_operation_outside() without return types