class_docstr: Sets up printing to the given file. If **fp** is omitted,
  :py:attr:`sys.stdout` is assumed.
class_docstr_tok: ["Sets","up","printing","to","the","given","file",".","If","*","*","fp","*","*","is","omitted",",",":","py",":","attr",":","`","sys.stdout","`","is","assumed","."]
code: def _fp_write(self, to_write):
      if not py3 or self.fp == sys.stdout:
          self.fp.write(to_write)
      else:
          self.fp.write(bytes(to_write, "UTF-8"))
  
file_path: catboost/contrib/python/Pillow/py2/PIL/PSDraw.py
imports: import sys
  from .None import EpsImagePlugin
  from ._util import py3
label_desc: Use image node_id 2 for calling the PSDraw obj's underlying member method code with example usage: obj._fp_write(to_write) without return types