class_docstr: Tests general operations.
class_docstr_tok: ["Tests","general","operations","."]
docstr: Check that the decimals argument affects text strings when applicable.
code: def test_general_operations_decimals(self, op):
      """Check that the decimals argument affects text strings when applicable."""
  
      with qml.queuing.AnnotatedQueue() as q_tape:
          qml.apply(op)
  
      tape = QuantumScript.from_queue(q_tape)
      _, ax = tape_mpl(tape, decimals=2)
  
      num_wires = len(op.wires)
      assert ax.texts[num_wires].get_text() == op.label(decimals=2)
  
      plt.close()
  
imports: import pytest
  import pennylane
  from pennylane.drawer import tape_mpl
  from pennylane.tape import QuantumScript
label_desc: Use image node_id 3 for calling the TestGeneralOperations obj's underlying member method code with example usage: obj.test_general_operations_decimals(op) without return types