code: def __init__(self, writemethod, encoding=None):
      self.encoding = encoding
      self._writemethod = writemethod
  
imports: import sys, os, unicodedata
  import py
  from py.builtin import text, bytes
label_desc: Use image node_id 1 to create a new WriteFile object from inherited base classes: object with example: obj = WriteFile(writemethod, encoding)