class_docstr: This class allows to capture writes to FD1 and FD2
  and may connect a NULL file to FD0 (and prevent
  reads from sys.stdin).  If any of the 0,1,2 file descriptors
  is invalid it will not be captured.
docstr: return (outfile, errfile) and stop capturing. 
docstr_tok: ["return","(","outfile",",","errfile",")","and","stop","capturing","."]
code: def done(self, save=True):
      """return (outfile, errfile) and stop capturing."""
      outfile = errfile = None
      if hasattr(self, "out") and not self.out.tmpfile.closed:
          outfile = self.out.done()
      if hasattr(self, "err") and not self.err.tmpfile.closed:
          errfile = self.err.done()
      if hasattr(self, "in_"):
          tmpfile = self.in_.done()
      if save:
          self._save()
      return outfile, errfile
  
imports: import os
  import sys
  import py
  import tempfile
label_desc: Use image node_id 5 for calling the StdCaptureFD obj's underlying member method code with example usage: obj.done(save) and returns: outfile,  errfile