code: def test_colorbar_widget():
      with TestingCanvas() as c:
          colorbar_top = create_colorbar(
              pos=(50, 50), label="my label", orientation="top"
          )
  
          c.draw_visual(colorbar_top)
          assert_image_approved(c.render(), "visuals/colorbar/top.png")
          assert colorbar_top.label.text == "my label"
  
imports: from vispy.scene.widgets import ColorBarWidget
  from vispy.testing import requires_application, TestingCanvas, run_tests_if_main
  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_widget() without return types