docstr: Write text and scroll
  
  Parameters
  ----------
  text : str
      Text to write. ``''`` can be used for a blank line, as a newline
      is automatically added to the end of each line.
  wrap : str
      If True, long messages will be wrapped to span multiple lines.
docstr_tok: ["Write","text","and","scroll","Parameters","--","--","--","--","--","text",":","str","Text","to","write",".","``","``","``","can","be","used","for","a","blank","line",",","as","a","newline","is","automatically","added","to","the","end","of","each","line",".","wrap",":","str","If","True",",","long","messages","will","be","wrapped","to","span","multiple","lines","."]
code: def write(self, text="", wrap=True):
      """Write text and scroll
  
      Parameters
      ----------
      text : str
          Text to write. ``''`` can be used for a blank line, as a newline
          is automatically added to the end of each line.
      wrap : str
          If True, long messages will be wrapped to span multiple lines.
      """
      # Clear line
      if not isinstance(text, str):
          raise TypeError("text must be a string")
      # ensure we only have ASCII chars
      text = text.encode("utf-8").decode("ascii", errors="replace")
      self._pending_writes.append((text, wrap))
      self.update()
  
imports: import numpy
  from .widget import Widget
  from ...visuals import Visual
  from ...gloo import VertexBuffer
  from ...color import Color
label_desc: Use image node_id 12 for calling the ConsoleVisual obj's underlying member method code with example usage: obj.write(text, wrap) without return types