class_docstr: Class that provides a series of GL functions that do not fit
  in the object oriented part of gloo. An instance of this class is
  associated with each canvas.
docstr: Toggle writing into the depth buffer
  
  Parameters
  ----------
  flag : bool
      Whether depth writing should be enabled.
docstr_tok: ["Toggle","writing","into","the","depth","buffer","Parameters","--","--","--","--","--","flag",":","bool","Whether","depth","writing","should","be","enabled","."]
code: def set_depth_mask(self, flag):
      """Toggle writing into the depth buffer
  
      Parameters
      ----------
      flag : bool
          Whether depth writing should be enabled.
      """
      self.glir.command("FUNC", "glDepthMask", bool(flag))
  
imports: import numpy
  from copy import deepcopy
  from .None import gl
  from ..color import Color
  from ..util import logger
label_desc: Use image node_id 19 for calling the BaseGlooFunctions obj's underlying member method code with example usage: obj.set_depth_mask(flag) without return types