code: def test_colorbar_draw():
      """Test drawing Colorbar without transform using ColorbarVisual"""
      with TestingCanvas() as c:
          colorbar_top = create_colorbar(
              pos=(50, 50), size=(60, 4), orientation="top"
          )
  
          c.draw_visual(colorbar_top)
          assert_image_approved(c.render(), "visuals/colorbar/top.png")
          colorbar_top.parent = None
  
          colorbar_bottom = create_colorbar(
              pos=(50, 50), size=(60, 4), orientation="bottom"
          )
  
          c.draw_visual(colorbar_bottom)
          assert_image_approved(
              c.render(), "visuals/colorbar/bottom.png"
          )
          colorbar_bottom.parent = None
  
          colorbar_left = create_colorbar(
              pos=(50, 50), size=(60, 4), orientation="left"
          )
  
          c.draw_visual(colorbar_left)
          assert_image_approved(c.render(), "visuals/colorbar/left.png")
          colorbar_left.parent = None
  
          colorbar_right = create_colorbar(
              pos=(50, 50), size=(60, 4), orientation="right"
          )
  
          c.draw_visual(colorbar_right)
          assert_image_approved(
              c.render(), "visuals/colorbar/right.png"
          )
  
file_path: vispy/vispy/visuals/tests/test_colorbar.py
imports: from vispy.scene import visuals
  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 2 for calling a global function with example usage: test_colorbar_draw() without return types