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: accessor_test.go
    path of file: ./repos/flyte/flytestdlib/config/tests
    
    the code of the file until where you have to start completion: package tests

import (
	"context"
	"crypto/rand"
	"encoding/binary"
	"fmt"
	"io/ioutil"
	"os"
	"os/exec"
	"path"
	"path/filepath"
	"reflect"
	"runtime"
	"strings"
	"testing"
	"time"

	"github.com/ghodss/yaml"
	"github.com/spf13/pflag"
	"github.com/stretchr/testify/assert"
	k8sRand "k8s.io/apimachinery/pkg/util/rand"

	"github.com/flyteorg/flyte/flytestdlib/config"
	"github.com/flyteorg/flyte/
    
func tempFileName(dir, pattern string) string {
	// TODO: Remove this hack after we use Go1.11 everywhere:
	// https://github.com/golang/go/commit/191efbc419d7e5dec842c20841f6f716da4b561d

	var prefix, suffix string
	if pos := strings.LastIndex(pattern, "*"); pos != -1 {
		prefix, suffix = pattern[:pos], pattern[pos+1:]
	} else {
		prefix = pattern
	}

	if len(dir) == 0 {
		dir = os.TempDir()
	}

	return filepath.Join(dir, prefix+k8sRand.String(6)+suffix)
}