code: def test_text_depth_test():
      t = Text(depth_test=False)
      assert not t._vshare.gl_state["depth_test"]
  
      t = Text(depth_test=True)
      assert t._vshare.gl_state["depth_test"]
  
      t = Text()  # Default is false
      assert not t._vshare.gl_state["depth_test"]
  
file_path: vispy/vispy/visuals/tests/test_text.py
imports: import numpy
  from numpy.testing import assert_allclose
  from vispy.scene.visuals import Text
  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 4 for calling a global function with example usage: test_text_depth_test() without return types