<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def wrapped_target(target, q_stdout, q_stderr, q_error, robust, name, *args, **kwargs):
 # pragma: no cover """ Wraps a target with queues replacing stdout and stderr """

    import sys
    sys.stdout = IOQueue(q_stdout)
    sys.stderr = IOQueue(q_stderr)

    try:
        target(*args, **kwargs)
    except:
        if not robust:
            s = 'Error in tab\n' + traceback.format_exc()
            logger = daiquiri.getLogger(name)
            logger.error(s)
        else:
            raise



        if not robust:
            q_error.put(name)
        raise