code: def test_arrow_transform_draw():
      """Tests the ArrowVisual when a transform is applied"""
      with TestingCanvas() as c:
          if IS_TRAVIS_CI and c.app.backend_name.lower() == "pyqt4":
              # TODO: Fix this (issue #1042
              raise SkipTest("Travis fails due to FB stack problem")
          for arrow_type in ARROW_TYPES:
              arrow = visuals.Arrow(
                  pos=vertices,
                  arrow_type=arrow_type,
                  arrows=arrows,
                  arrow_size=10,
                  color="red",
                  connect="segments",
                  parent=c.scene,
              )
              arrow.transform = transforms.STTransform(
                  scale=(0.5, 0.75), translate=(-20, -20)
              )
  
              assert_image_approved(
                  c.render(),
                  "visuals/arrow_transform_type_%s.png" % arrow_type,
              )
  
              arrow.parent = None
  
file_path: vispy/vispy/visuals/tests/test_arrows.py
imports: import numpy
  from vispy.visuals.line.arrow import ARROW_TYPES
  from vispy.scene import visuals, transforms
  from vispy.testing import requires_application, TestingCanvas, run_tests_if_main, assert_raises, SkipTest, IS_TRAVIS_CI
  from vispy.testing.image_tester import assert_image_approved
label_desc: Use image node_id 2 for calling a global function with example usage: test_arrow_transform_draw() without return types