code: def categorical_from_vocab_list(sth, vocab_list, default=-1, start=0):
      if sth in vocab_list:
          return vocab_list.index(sth) + start
      else:
          return default + start
  
file_path: analytics-zoo/pyzoo/zoo/models/recommendation/utils.py
imports: import numpy
  from bigdl.util.common import JTensor, Sample
  from zoo.common.utils import callZooFunc
  from zoo.models.recommendation import UserItemFeature
label_desc: Use image node_id 2 for calling a global function with example usage: categorical_from_vocab_list(sth, vocab_list, default, start) and returns: unknown, unknown