code: def test_single_ops(op, expected):
      """Tests a variety of different single operation tapes render as expected."""
  
      with qml.queuing.AnnotatedQueue() as q:
          qml.apply(op)
  
      _tape = qml.tape.QuantumScript.from_queue(q)
      assert (
          tape_text(_tape, decimals=2, show_matrices=False) == expected
      )
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.drawer import tape_text
  from pennylane.drawer.tape_text import _add_grouping_symbols, _add_cond_grouping_symbols, _add_mid_measure_grouping_symbols, _add_cwire_measurement_grouping_symbols, _add_cwire_measurement, _add_measurement, _add_op, _Config
  from pennylane.tape import QuantumScript, QuantumTape
label_desc: Use image node_id 2 for calling a global function with example usage: test_single_ops(op, expected) without return types