code: def top1(t):
      values, index = t.topk(k=1, dim=-1)
      values, index = map(lambda x: x.squeeze(dim=-1), (values, index))
      return values, index
  
imports: import torch
  from torch import nn
  import torch.nn.functional
  import math
  from inspect import isfunction
label_desc: Use image node_id 3 for calling a global function with example usage: top1(t) and returns: values,  index