code: def get_vocab_imdb(data):
      """
      Get the indexed tokens
      """
      tokenized_data = get_tokenized_imdb(data)
      counter = collections.Counter(
          [tk for st in tokenized_data for tk in st]
      )
      return text.vocab.Vocabulary(counter, min_freq=5)
  
imports: import collections
  import os
  import random
  import sys
  import tarfile
  import mxnet
  from mxnet import nd, gluon
  from mxnet.contrib import text
  from mxnet.gluon import nn, rnn
  from mxnet.gluon.contrib.estimator import estimator
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: get_vocab_imdb(data) and returns: text