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","."]
code: def __init__(self, fp=None):
      if not fp:
          try:
              fp = sys.stdout.buffer
          except AttributeError:
              fp = sys.stdout
      self.fp = fp
  
file_path: pillow/src/PIL/PSDraw.py
imports: from __future__ import annotations
  import sys
  from .None import EpsImagePlugin
label_desc: Use image node_id 1 to create a new PSDraw object  with example: obj = PSDraw(fp)