class_docstr: log consumer wrapping a file(-like) object 
code: def __init__(self, f):
      assert hasattr(f, "write")
      # assert isinstance(f, file) or not hasattr(f, 'open')
      self._file = f
  
imports: import py
  import sys
label_desc: Use image node_id 1 to create a new File object from inherited base classes: object with example: obj = File(f)