class_docstr: Tests for the apply function
class_docstr_tok: ["Tests","for","the","apply","function"]
docstr: Test that an object with no queue method is still
  added to the queuing context
docstr_tok: ["Test","that","an","object","with","no","queue","method","is","still","added","to","the","queuing","context"]
code: def test_apply_no_queue_method(self):
      """Test that an object with no queue method is still
      added to the queuing context"""
      with qml.queuing.AnnotatedQueue() as q1:
          with qml.queuing.AnnotatedQueue() as q2:
              op1 = qml.apply(5)
              op2 = qml.apply(6, q1)
  
          tape2 = qml.tape.QuantumScript.from_queue(q2)
      tape1 = qml.tape.QuantumScript.from_queue(q1)
      assert q1.queue == [op2]
      assert q2.queue == [op1]
  
      # note that tapes don't know how to process integers,
      # so they are not included after queue processing
      assert tape1.operations == []
      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 10 for calling the TestApplyOp obj's underlying member method code with example usage: obj.test_apply_no_queue_method() without return types