class_docstr: Sets up printing to the given file. If ``fp`` is omitted,
  ``sys.stdout.buffer`` or ``sys.stdout`` is assumed.
class_docstr_tok: ["Sets","up","printing","to","the","given","file",".","If","``","fp","``","is","omitted",",","``","sys.stdout.buffer","``","or","``","sys.stdout","``","is","assumed","."]
docstr: Draws text at the given position. You must use
  :py:meth:`~PIL.PSDraw.PSDraw.setfont` before calling this method.
docstr_tok: ["Draws","text","at","the","given","position",".","You","must","use",":","py",":","meth",":","`","~PIL.PSDraw.PSDraw.setfont","`","before","calling","this","method","."]
code: def text(self, xy, text):
      """
      Draws text at the given position. You must use
      :py:meth:`~PIL.PSDraw.PSDraw.setfont` before calling this method.
      """
      text = bytes(text, "UTF-8")
      text = b"\\(".join(text.split(b"("))
      text = b"\\)".join(text.split(b")"))
      xy += (text,)
      self.fp.write(b"%d %d M (%s) S\n" % xy)
  
file_path: pillow/src/PIL/PSDraw.py
imports: from __future__ import annotations
  import sys
  from .None import EpsImagePlugin
label_desc: Use image node_id 7 for calling the PSDraw obj's underlying member method code with example usage: obj.text(xy, text) without return types