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 a specfied queuing context
docstr_tok: ["Test","applying","a","measurement","instantiated","inside","a","queuing","context","to","a","specfied","queuing","context"]
code: def test_different_queue_measurements_inside(self, obs):
      """Test applying a measurement instantiated inside a queuing context
      to a specfied queuing context"""
  
      with qml.queuing.AnnotatedQueue() as q1:
          with qml.queuing.AnnotatedQueue() as q2:
              op1 = qml.expval(obs)
              op2 = qml.apply(op1, q1)
  
          tape2 = qml.tape.QuantumScript.from_queue(q2)
      tape1 = qml.tape.QuantumScript.from_queue(q1)
      assert tape1.measurements == [op2]
      assert tape2.measurements == [op1]
  
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 9 for calling the TestApplyOp obj's underlying member method code with example usage: obj.test_different_queue_measurements_inside(obs) without return types