code: def map_sample(sa_sample, tokenizer, label2id):
      x = sa_sample["x"]
      # tokenize and convert token to id
      token_ids = tokenizer.encode(x)
      label_id = label2id[sa_sample["y"]]
  
      return token_ids, label_id
  
file_path: textflint/textflint/input/model/test_model/model_helper.py
imports: import os
  import json
  import csv
  import random
  import numpy
  import torch
label_desc: Use image node_id 3 for calling a global function with example usage: map_sample(sa_sample, tokenizer, label2id) and returns: token_ids,  label_id