code: def test_categorical_from_vocab_list(self):
      MARITAL_STATUS_VOCAB = [
          "Married-civ-spouse",
          "Divorced",
          "Married-spouse-absent",
          "Never-married",
          "Separated",
          "Married-AF-spouse",
          "Widowed",
      ]
      index = categorical_from_vocab_list(
          "Never-married", MARITAL_STATUS_VOCAB
      )
      assert index == 3
  
file_path: analytics-zoo/pyzoo/test/zoo/models/recommendation/test_recommender_utils.py
imports: import pytest
  from zoo.models.recommendation.utils import *
  from zoo.common.nncontext import *
  from test.zoo.pipeline.utils.test_utils import ZooTestCase
label_desc: Use image node_id 2 for calling the TestRecommenderUtils obj's underlying member method code with example usage: obj.test_categorical_from_vocab_list() without return types