class_docstr: Test the labels produced by the circuit drawer for the wires.
class_docstr_tok: ["Test","the","labels","produced","by","the","circuit","drawer","for","the","wires","."]
docstr: Test the labels produced under different settings. Check both text value and position.
code: def test_labels(self, kwargs, labels):
      """Test the labels produced under different settings. Check both text value and position."""
      _, ax = tape_mpl(tape1, **kwargs)
  
      for wire, (text_obj, label) in enumerate(zip(ax.texts, labels)):
          assert text_obj.get_text() == label
          assert text_obj.get_position() == (-1.5, wire)
  
      plt.close()
  
imports: import pytest
  import pennylane
  from pennylane.drawer import tape_mpl
  from pennylane.tape import QuantumScript
label_desc: Use image node_id 1 for calling the TestLabelling obj's underlying member method code with example usage: obj.test_labels(kwargs, labels) without return types