<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cowsay_output(message):
 """ Invoke a shell command to print cowsay output. Primary replacement for os.system calls. """

    command = 'cowsay "%s"' % message
    ret = subprocess.Popen(
        command, shell=True, stdin=subprocess.PIPE,
        stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
    output, error = ret.communicate()
    return output, error