code: def test_rectangle_draw():
      """Test drawing rectpolygons without transform using RectPolygonVisual"""
      with TestingCanvas() as c:
          rectpolygon = visuals.Rectangle(
              center=(50, 50, 0),
              height=40.0,
              width=80.0,
              color="red",
              parent=c.scene,
          )
  
          assert_image_approved(c.render(), "visuals/rectpolygon1.png")
  
          rectpolygon.parent = None
          rectpolygon = visuals.Rectangle(
              center=(50, 50, 0),
              height=40.0,
              width=80.0,
              radius=10.0,
              color="red",
              parent=c.scene,
          )
  
          assert_image_approved(c.render(), "visuals/rectpolygon2.png")
  
          rectpolygon.parent = None
          rectpolygon = visuals.Rectangle(
              center=(50, 50, 0),
              height=40.0,
              width=80.0,
              radius=10.0,
              color="red",
              border_color=(0, 1, 1, 1),
              parent=c.scene,
          )
  
          assert_image_approved(c.render(), "visuals/rectpolygon3.png")
  
          rectpolygon.parent = None
          rectpolygon = visuals.Rectangle(
              center=(50, 50, 0),
              height=40.0,
              width=80.0,
              radius=10.0,
              border_color="white",
              parent=c.scene,
          )
  
          assert_image_approved(
              c.render(), "visuals/rectpolygon4.png", min_corr=0.5
          )
  
          rectpolygon.parent = None
          rectpolygon = visuals.Rectangle(
              center=(50, 50, 0),
              height=60.0,
              width=80.0,
              radius=[25, 10, 0, 15],
              color="red",
              border_color=(0, 1, 1, 1),
              parent=c.scene,
          )
  
          assert_image_approved(c.render(), "visuals/rectpolygon5.png")
  
          rectpolygon.parent = None
          rectpolygon = visuals.Rectangle(
              center=(50, 50, 0),
              height=60.0,
              width=80.0,
              radius=[25, 10, 0, 15],
              color="red",
              border_color=(0, 1, 1, 1),
              border_width=5,
              border_method="agg",
              parent=c.scene,
          )
  
          assert_image_approved(c.render(), "visuals/rectpolygon10.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 1 for calling a global function with example usage: test_rectangle_draw() without return types