class_docstr: Tests for the apply function
class_docstr_tok: ["Tests","for","the","apply","function"]
docstr: Test that applying an operation without an active
  context raises an error
docstr_tok: ["Test","that","applying","an","operation","without","an","active","context","raises","an","error"]
code: def test_error(self):
      """Test that applying an operation without an active
      context raises an error"""
      with pytest.raises(RuntimeError, match="No queuing context"):
          qml.apply(qml.PauliZ(0))
  
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 1 for calling the TestApplyOp obj's underlying member method code with example usage: obj.test_error() without return types