code: def test_capabilities():
      """Test GLIR capability reporting"""
      with Canvas() as c:
          capabilities = c.context.shared.parser.capabilities
          assert capabilities["max_texture_size"] is not None
          assert capabilities["gl_version"] != "unknown"
  
file_path: vispy/vispy/gloo/tests/test_glir.py
imports: import json
  import tempfile
  from unittest import mock
  from vispy import config
  from vispy.app import Canvas
  from vispy.gloo import glir
  from vispy.testing import requires_application, requires_pyopengl, run_tests_if_main
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: test_capabilities() without return types