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