code: def test_set_gl_state():
      node = vispy.visuals.MeshVisual()
  
      node.set_gl_state(blend=False, depth_test=False)
      # preset is always set, unset kwargs should be absent
      assert node._vshare.gl_state == {
          "preset": None,
          "blend": False,
          "depth_test": False,
      }
  
      node.set_gl_state(blend=False)
      # preset is always set, unset kwargs should be absent
      assert node._vshare.gl_state == {"preset": None, "blend": False}
  
file_path: vispy/vispy/scene/tests/test_visuals.py
imports: import pytest
  from vispy.scene import visuals, Node
  from vispy.scene.visuals import VisualNode
  import vispy.visuals
label_desc: Use image node_id 8 for calling a global function with example usage: test_set_gl_state() without return types