def getoutputerror(cmd):
out_err = process_handler(cmd, lambda p: p.communicate())<EOL>if out_err is None:<EOL><INDENT>return '<STR_LIT>', '<STR_LIT>'<EOL><DEDENT>out, err = out_err<EOL>return py3compat.bytes_to_str(out), py3compat.bytes_to_str(err)<EOL>
Return (standard output, standard error) of executing cmd in a shell.

    Accepts the same arguments as os.system().

    Parameters
    ----------
    cmd : str
      A command to be executed in the system shell.

    Returns
    -------
    stdout : str
    stderr : str