code: def init(tokenizer_class, db_opts):
      global PROCESS_TOK, PROCESS_DB
      PROCESS_TOK = tokenizer_class()
      Finalize(PROCESS_TOK, PROCESS_TOK.shutdown, exitpriority=100)
      PROCESS_DB = DocDB(**db_opts)
      Finalize(PROCESS_DB, PROCESS_DB.close, exitpriority=100)
  
imports: import numpy
  import scipy.sparse
  import math
  from multiprocessing import Pool
  from multiprocessing.util import Finalize
  from functools import partial
  from collections import Counter
  from .None import utils
  from .doc_db import DocDB
  from .None import tokenizers
  import parlai.utils.logging
label_desc: Use image node_id 1 for calling a global function with example usage: init(tokenizer_class, db_opts) without return types