code: def test_reactive_draw():
      """Test reactive regular polygon attributes"""
      with TestingCanvas() as c:
          rpolygon = visuals.RegularPolygon(
              center=[50, 50, 0.0],
              radius=20,
              sides=8,
              color="yellow",
              parent=c.scene,
          )
  
          rpolygon.center = [70, 40, 0.0]
          assert_image_approved(
              c.render(), "visuals/reactive_regular_polygon1.png"
          )
  
          rpolygon.radius = 25
          assert_image_approved(
              c.render(), "visuals/reactive_regular_polygon2.png"
          )
  
          rpolygon.color = "red"
          assert_image_approved(
              c.render(), "visuals/reactive_regular_polygon3.png"
          )
  
          rpolygon.border_color = "yellow"
          assert_image_approved(
              c.render(), "visuals/reactive_regular_polygon4.png"
          )
  
          rpolygon.sides = 6
          assert_image_approved(
              c.render(), "visuals/reactive_regular_polygon5.png"
          )
  
imports: from vispy.scene import visuals, transforms
  from vispy.testing import requires_application, TestingCanvas, run_tests_if_main
  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