code: def test_reactive_draw():
      """Test reactive polygon attributes"""
      pos = np.array(
          [
              [-0.1, 0.5, 0],
              [0.1, 0.5, 0],
              [0.1, -0.5, 0],
              [-0.1, -0.5, 0],
          ]
      )
      with TestingCanvas() as c:
          polygon = visuals.Polygon(
              pos=pos, color="yellow", parent=c.scene
          )
          polygon.transform = transforms.STTransform(
              scale=(50, 50), translate=(50, 50)
          )
  
          polygon.pos += [0.1, -0.1, 0]
  
          assert_image_approved(
              c.render(), "visuals/reactive_polygon1.png"
          )
  
          polygon.color = "red"
  
          assert_image_approved(
              c.render(), "visuals/reactive_polygon2.png"
          )
  
          polygon.border_color = "yellow"
  
          assert_image_approved(
              c.render(), "visuals/reactive_polygon3.png", min_corr=0.8
          )
  
imports: import numpy
  from vispy.scene import visuals, transforms
  from vispy.testing import requires_application, requires_scipy, 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