code: def teetext(table, source=None, encoding=None, errors='strict', template=None,
              prologue=None, epilogue=None):
      
  
      assert template is not None, 'template is required'
      return TeeTextView(table, source=source, encoding=encoding, errors=errors,
                         template=template, prologue=prologue, epilogue=epilogue)
docs: Return a table that writes rows to a text file as they are iterated over.