code: def accuracy(logits, y):
      _, preds = torch.max(logits, 1)
      return (preds == y).float().mean()
  
file_path: facenet-pytorch/models/utils/training.py
imports: import torch
  import numpy
  import time
label_desc: Use image node_id 1 for calling a global function with example usage: accuracy(logits, y) and returns: unknown