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: micro_wrapper.go
    path of file: ./repos/learning_tools/micro_v2/ecode
    
    the code of the file until where you have to start completion: package ecode

import (
	"context"
	"github.com/micro/go-micro/v2/client"
	"github.com/micro/go-micro/v2/errors"
	"github.com/micro/go-micro/v2/registry"
	"github.com/micro/go-micro/v2/server"
	errors2 "github.com/pkg/errors"
)

func ServerEcodeWrapper(svrName string) server.HandlerWrapper {
	return func(fn server.HandlerFunc) server.HandlerFunc {

    
func ServerEcodeWrapper(svrName string) server.HandlerWrapper {
	return func(fn server.HandlerFunc) server.HandlerFunc {
		return func(ctx context.Context, req server.Request, rsp interface{}) error {
			err := fn(ctx, req, rsp)
			if code, ok := IsCode(errors2.Cause(err)); ok {
				return errors.New(svrName, code.Error(), int32(code.Code()))
			}
			return err
		}
	}
}