class_docstr: Render context superclass for offscreen and window rendering.
class_docstr_tok: ["Render","context","superclass","for","offscreen","and","window","rendering","."]
docstr: Overlays text on the scene.
docstr_tok: ["Overlays","text","on","the","scene","."]
code: def add_overlay(self, gridpos: int, text1: str, text2: str):
      """Overlays text on the scene."""
      if gridpos not in self._overlays:
          self._overlays[gridpos] = ["", ""]
      self._overlays[gridpos][0] += text1 + "\n"
      self._overlays[gridpos][1] += text2 + "\n"
  
imports: import collections
  import os
  import time
  from threading import Lock
  import glfw
  import imageio
  import mujoco
  import numpy
label_desc: Use image node_id 6 for calling the RenderContext obj's underlying member method code with example usage: obj.add_overlay(gridpos, text1, text2) without return types