code: def accuracy(out, labels):
      outputs = np.argmax(out, axis=1)
      return np.sum(outputs == labels)
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/examples/legacy/run_openai_gpt.py
imports: import argparse
  import csv
  import logging
  import os
  import random
  import numpy
  import torch
  from torch.utils.data import DataLoader, RandomSampler, SequentialSampler, TensorDataset
  from tqdm import tqdm, trange
  from transformers import CONFIG_NAME, WEIGHTS_NAME, AdamW, OpenAIGPTDoubleHeadsModel, OpenAIGPTTokenizer, get_linear_schedule_with_warmup
label_desc: Use image node_id 1 for calling a global function with example usage: accuracy(out, labels) and returns: np