code: def test_run():
      """Test app running"""
      for _ in range(2):
          with Canvas(size=(100, 100), show=True, title="run") as c:
  
              @c.events.draw.connect
              def draw(event):
                  print(event)  # test event __repr__
                  c.app.quit()
  
              c.update()
              c.app.run()
          c.app.quit()
  
imports: import sys
  from collections import namedtuple
  from io import StringIO
  from time import sleep
  import gc
  import numpy
  from numpy.testing import assert_array_equal
  import pytest
  from vispy.app import use_app, Canvas, Timer, MouseEvent, KeyEvent
  from vispy.app.base import BaseApplicationBackend
  from vispy.testing import requires_application, SkipTest, assert_is, assert_in, run_tests_if_main, assert_equal, assert_true, assert_raises, IS_TRAVIS_CI
  from vispy.util import keys, use_log_level
  from vispy.gloo.program import Program, VertexBuffer, IndexBuffer
  from vispy.gloo.util import _screenshot
  from vispy.gloo import gl
label_desc: Use image node_id 5 for calling a global function with example usage: test_run() without return types