code: def _test_setting_parameters():
      # Set some parameters and get result
      clr = 1.0, 0.1, 0.2, 0.7
      gl.glClearColor(*clr)
      assert_almost_equal(
          gl.glGetParameter(gl.GL_COLOR_CLEAR_VALUE), clr
      )
      #
      gl.glCullFace(gl.GL_FRONT)
      assert_equal(gl.glGetParameter(gl.GL_CULL_FACE_MODE), gl.GL_FRONT)
      gl.glCullFace(gl.GL_BACK)
      assert_equal(gl.glGetParameter(gl.GL_CULL_FACE_MODE), gl.GL_BACK)
      #
      gl.glDepthFunc(gl.GL_NOTEQUAL)
      assert_equal(gl.glGetParameter(gl.GL_DEPTH_FUNC), gl.GL_NOTEQUAL)
      #
      val = 0.2, 0.3
      gl.glDepthRange(*val)
      assert_almost_equal(gl.glGetParameter(gl.GL_DEPTH_RANGE), val)
  
      gl.check_error()
  
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 7 for calling a global function with example usage: _test_setting_parameters() without return types