docstr: return a (res, out, err) tuple where
  out and err represent the output/error output
  during function execution.
  call the given function with args/kwargs
  and capture output/error during its execution.
docstr_tok: ["return","a","(","res",",","out",",","err",")","tuple","where","out","and","err","represent","the","output\/error","output","during","function","execution",".","call","the","given","function","with","args\/kwargs","and","capture","output\/error","during","its","execution","."]
code: def call(cls, func, *args, **kwargs):
      """return a (res, out, err) tuple where
      out and err represent the output/error output
      during function execution.
      call the given function with args/kwargs
      and capture output/error during its execution.
      """
      so = cls()
      try:
          res = func(*args, **kwargs)
      finally:
          out, err = so.reset()
      return res, out, err
  
imports: import os
  import sys
  import py
  import tempfile
label_desc: Use image node_id 1 for calling the Capture obj's underlying member method code with example usage: obj.call(cls, func) and returns: res,  out,  err