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: formatter.go
    path of file: ./repos/rancher/pkg/api/norman/customization/nodepool
    
    the code of the file until where you have to start completion: package nodepool

import (
	"strings"

	"github.com/rancher/norman/types"
	client "github.com/rancher/rancher/pkg/client/generated/management/v3"
	v3 "github.com/rancher/rancher/pkg/generated/norman/management.cattle.io/v3"
	"github.com/sirupsen/logrus"
)

type Formatter struct {
	NodeTemplateLister v3.N
    
func (ntf *Formatter) Formatter(request *types.APIContext, resource *types.RawResource) {
	nodeTemplateID, _ := resource.Values[client.NodePoolFieldNodeTemplateID].(string)
	if nodeTemplateID == "" {
		return
	}

	// id is namespace:name
	parts := strings.Split(nodeTemplateID, ":")
	if len(parts) != 2 {
		return
	}

	template, err := ntf.NodeTemplateLister.Get(parts[0], parts[1])
	if err != nil {
		logrus.Warnf("Failed to get nodeTemplate driver for nodePool %v. Error: %v", resource.ID, err)
		return
	}

	resource.Values["driver"] = template.Spec.Driver
}