code: def test_reactive_draw():
      """Test reactive RectPolygon attributes"""
      with TestingCanvas() as c:
          rectpolygon = visuals.Rectangle(
              center=(50, 50, 0),
              height=40.0,
              width=80.0,
              color="red",
              parent=c.scene,
          )
  
          rectpolygon.radius = [20.0, 20, 0.0, 10.0]
  
          assert_image_approved(
              c.render(), "visuals/reactive_rectpolygon1.png"
          )
  
          rectpolygon.center = (60, 60, 0)
  
          assert_image_approved(
              c.render(), "visuals/reactive_rectpolygon2.png"
          )
  
          rectpolygon.color = "blue"
  
          assert_image_approved(
              c.render(), "visuals/reactive_rectpolygon3.png"
          )
  
          rectpolygon.border_color = "yellow"
  
          assert_image_approved(
              c.render(), "visuals/reactive_rectpolygon4.png"
          )
  
          rectpolygon.radius = 10.0
  
          assert_image_approved(
              c.render(), "visuals/reactive_rectpolygon5.png"
          )
  
imports: from vispy.scene import visuals, transforms
  from vispy.testing import requires_application, TestingCanvas, run_tests_if_main, raises
  from vispy.testing.image_tester import assert_image_approved
label_desc: Use image node_id 3 for calling a global function with example usage: test_reactive_draw() without return types