How to call kubernetes pod agent in shared library using Jenkins template engine

Is it right?

Void call(){
Stage(build){
agent {
Kubernetes {
yml ‘’’
Spec:
-name: node
Image: nodejs-16.1
imagepullPolicy: true
command:
- cat
}}
node(pod label){
Sh"npm install"