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: node.go
    path of file: ./repos/gorgonia/encoding/dot
    
    the code of the file until where you have to start completion: package dot

import (
	"fmt"
	"strings"

	"gonum.org/v1/gonum/graph/encoding"
	"gorgonia.org/gorgonia"
	internalEncoding "gorgonia.org/gorgonia/internal/encoding"
)

type node struct {
	n *gorgonia.Node
}

func (n *node) ID() int64 {
	return n.n.ID()
}

// DOTID is used for the graphviz output. It fulfils the gonum encoding interface
func (n *node) DOTID() string {
	return fmt.Sprintf("Node_%p", n.n)
}

// A
    
func (n *node) Attributes() []encoding.Attribute {
	var htmlEscaper = strings.NewReplacer(
		`&`, "&amp;",
		`'`, "&#39;", // "&#39;" is shorter than "&apos;" and apos was not in HTML until HTML5.
		`<`, "&lt;",
		`>`, "&gt;",
		`{`, "&#123;",
		`}`, "&#125;",
		`"`, "&#34;", // "&#34;" is shorter than "&quot;".
		`const`, "const|", // "&#34;" is shorter than "&quot;".
	)
	attrs := []encoding.Attribute{
		{
			Key:   "id",
			Value: fmt.Sprintf(`"%p"`, n.n),
		},
		{
			Key:   "shape",
			Value: "Mrecord",
		},
		{
			Key: "label",
			Value: fmt.Sprintf(`"{{%s|%#x}|{Op|%s}|{Shape|%v}}"`,
				htmlEscaper.Replace(n.n.Name()),
				n.ID(),
				htmlEscaper.Replace(fmt.Sprintf("%s", n.n.Op())),
				n.n.Shape()),
		},
	}
	return attrs
}