You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: cli_test.go
    path of file: ./repos/infra/internal/cmd
    
    the code of the file until where you have to start completion: package cmd

import (
	"bytes"
	"context"
	"io"
	"os"
)

// PatchCLI returns a context which contains a CLI value with the output streams
// set to buffers. PatchCLI is used by tests to record the output produced by
// CLI commands.
func PatchCLI(ctx context.Context) (context.
    
func PatchCLI(ctx context.Context) (context.Context, BufferedStreams) {
	bufs := BufferedStreams{
		Stdin:  new(bytes.Buffer),
		Stdout: new(bytes.Buffer),
		Stderr: new(bytes.Buffer),
	}
	cli := &CLI{
		Stdout: writerWithFd{
			Writer: io.MultiWriter(bufs.Stdout, os.Stdout),
			fd:     os.Stdout.Fd(),
		},
		Stderr: io.MultiWriter(bufs.Stderr, os.Stderr),
		Stdin:  readerWithFd{Reader: bufs.Stdin, fd: os.Stdin.Fd()},
	}
	return context.WithValue(ctx, ctxKey, cli), bufs
}