class_docstr: A lazy file works like a regular file but it does not fully open
  the file but it does perform some basic checks early to see if the
  filename parameter does make sense.  This is useful for safely opening
  files for writing.
class_docstr_tok: ["A","lazy","file","works","like","a","regular","file","but","it","does","not","fully","open","the","file","but","it","does","perform","some","basic","checks","early","to","see","if","the","filename","parameter","does","make","sense",".","This","is","useful","for","safely","opening","files","for","writing","."]
code: def __iter__(self):
      self.open()
      return iter(self._f)
  
imports: import os
  import sys
  from ._compat import _default_text_stderr
  from ._compat import _default_text_stdout
  from ._compat import auto_wrap_for_ansi
  from ._compat import binary_streams
  from ._compat import filename_to_ui
  from ._compat import get_filesystem_encoding
  from ._compat import get_streerror
  from ._compat import is_bytes
  from ._compat import open_stream
  from ._compat import PY2
  from ._compat import should_strip_ansi
  from ._compat import string_types
  from ._compat import strip_ansi
  from ._compat import text_streams
  from ._compat import text_type
  from ._compat import WIN
  from .globals import resolve_color_default
label_desc: Use image node_id 9 for calling the LazyFile obj's underlying member method code with example usage: obj.__iter__() and returns: iter