class_docstr: A helper class to provide an OpenGL context. This context is global
  to the application.
class_docstr_tok: ["A","helper","class","to","provide","an","OpenGL","context",".","This","context","is","global","to","the","application","."]
docstr: Close the context. 
docstr_tok: ["Close","the","context","."]
code: def close(self):
      """Close the context."""
      # Cannot close the global instance
      if self is OffscreenContext._global_instance:
          return
      elif not self._is_closed:
          self._is_closed = True
          if self.glfw:
              self.glfw.destroy_window(self._canvas)
          else:
              self._canvas.close()
  
file_path: vispy/vispy/app/backends/_offscreen_util.py
imports: from ..None import Application, Canvas
  from ...None import gloo
label_desc: Use image node_id 4 for calling the OffscreenContext obj's underlying member method code with example usage: obj.close() without return types