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: steps.go
    path of file: ./repos/wal-g/tests_func
    
    the code of the file until where you have to start completion: package functests

import (
	"encoding/json"
	"fmt"
	"path"
	"path/filepath"
	"reflect"
	"time"

	"github.com/cucumber/godog"
	"github.com/stretchr/testify/assert"
	"github.com/wal-g/tracelog"
	"github.com/wal-g/wal-g/tests_func/helpers"
)

func SetupCommonSteps(ctx *godog.ScenarioContext, tctx *TestContext) {
	ctx.Step(`^prepared infrastructure$`, tctx.prepareInfrastructure)
	ctx.Step(`^a configured s3 on ([^\s]*)$`, tctx.configureS3)

	ctx.Step(`we sleep ([^\s]*)$`, tctx.sleep)
}

type TestingfWrap func(format string, args ...interface{})

func (tf TestingfWrap) Errorf(for
    
func (tctx *TestContext) sameDataCheck(dataId1, dataId2 string) error {
	if snap1, ok := tctx.AuxData.Snapshots[dataId1]; ok {
		if !assert.NotEmpty(TestingfWrap(tracelog.ErrorLogger.Printf), snap1) {
			return fmt.Errorf("data '%s' snapshot is empty: %+v", dataId1, snap1)
		}
		if snap2, ok := tctx.AuxData.Snapshots[dataId2]; ok {
			if !assert.NotEmpty(TestingfWrap(tracelog.ErrorLogger.Printf), snap2) {
				return fmt.Errorf("data '%s' snapshot is empty: %+v", dataId2, snap2)
			}
			if assert.Equal(TestingfWrap(tracelog.ErrorLogger.Printf), snap1, snap2) {
				return nil
			}
			return fmt.Errorf("same snapshots expected (%s) == (%s)", dataId1, dataId2)
		}
		return fmt.Errorf("no snapshot is saved for with id %s", dataId2)
	}
	return fmt.Errorf("no snapshot is saved for with id %s", dataId1)
}