code: def test_basics_desktop():
      """Test desktop GL backend for basic functionality."""
      _test_basics("gl2")
      with Canvas():
          _test_setting_parameters()
          _test_enabling_disabling()
          _test_setting_stuff()
          _test_object_creation_and_deletion()
          _test_fbo()
          try:
              gl.gl2._get_gl_func("foo", None, ())
          except RuntimeError as exp:
              exp = str(exp)
              assert "version" in exp
              assert "unknown" not in exp
          gl.glFinish()
  
file_path: vispy/vispy/gloo/gl/tests/test_basics.py
imports: import sys
  from vispy.app import Canvas
  from numpy.testing import assert_almost_equal
  from vispy.testing import requires_application, requires_pyopengl, SkipTest, run_tests_if_main, assert_equal, assert_true
  from vispy.util import use_log_level
  from vispy.gloo import gl
label_desc: Use image node_id 2 for calling a global function with example usage: test_basics_desktop() without return types