docstr: reset sys.stdout/stderr and return captured output as strings. 
docstr_tok: ["reset","sys.stdout\/stderr","and","return","captured","output","as","strings","."]
code: def reset(self):
      """reset sys.stdout/stderr and return captured output as strings."""
      if hasattr(self, "_reset"):
          raise ValueError("was already reset")
      self._reset = True
      outfile, errfile = self.done(save=False)
      out, err = "", ""
      if outfile and not outfile.closed:
          out = outfile.read()
          outfile.close()
      if errfile and errfile != outfile and not errfile.closed:
          err = errfile.read()
          errfile.close()
      return out, err
  
imports: import os
  import sys
  import py
  import tempfile
label_desc: Use image node_id 2 for calling the Capture obj's underlying member method code with example usage: obj.reset() and returns: out,  err