code: def get_tokenizer(tokenizer_name, tokenizer_dir):
      tokenizer = AutoTokenizer.from_pretrained(
          tokenizer_name, cache_dir=tokenizer_dir, do_lower_case=True
      )
      return tokenizer
  
file_path: ignite/examples/transformers/utils.py
imports: import torch
  from dataset import TransformerDataset
  from datasets import load_dataset
  from model import TransformerModel
  from transformers import AutoTokenizer
  from ignite.handlers import DiskSaver
label_desc: Use image node_id 1 for calling a global function with example usage: get_tokenizer(tokenizer_name, tokenizer_dir) and returns: tokenizer