code: def test_TextItem_setAngle():
      plt = pg.PlotWidget()
      plt.show()
      plt.setXRange(-10, 10)
      plt.setYRange(-20, 20)
      item = pg.TextItem(text="test")
      plt.addItem(item)
  
      t1 = item.transform()
  
      item.setAngle(30)
      app.processEvents()
  
      t2 = item.transform()
  
      assert t1 != t2
      assert not t1.isRotating()
      assert t2.isRotating()
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_TextItem_setAngle() without return types