class_docstr: vocab op test 
class_docstr_tok: ["vocab","op","test"]
docstr: test vocab token to id which is loaded from vocab file
docstr_tok: ["test","vocab","token","to","id","which","is","loaded","from","vocab","file"]
code: def test_vocab_token_to_load_id(self):
      """test vocab token to id which is loaded from vocab file"""
      with self.cached_session(use_gpu=False, force_gpu=False):
          vocab = [
              "<s>	3",
              "</s>	5",
              "<unk>	7",
              "<epsilon>	9",
              "a	2",
              "b c d e	4",
              "øut	8",
              "über	10",
              "♣	-1",
              "愤青	-3",
              "←	-5",
          ]
          self.assertEqual(
              3,
              py_x_ops.vocab_token_to_id(
                  "<s>", vocab=vocab, load_token_ids_from_vocab=True
              ).eval(),
          )
          self.assertEqual(
              2,
              py_x_ops.vocab_token_to_id(
                  "a", vocab=vocab, load_token_ids_from_vocab=True
              ).eval(),
          )
          self.assertAllEqual(
              [4, -1],
              py_x_ops.vocab_token_to_id(
                  ["b c d e", "♣"],
                  vocab=vocab,
                  load_token_ids_from_vocab=True,
              ).eval(),
          )
          self.assertEqual(
              7,
              py_x_ops.vocab_token_to_id(
                  "unknown", vocab=vocab, load_token_ids_from_vocab=True
              ).eval(),
          )
  
file_path: delta/core/ops/kernels/simple_vocab_op_test.py
imports: import delta.compat
  from delta.layers.ops import py_x_ops
label_desc: Use image node_id 4 for calling the VocabOpsTest obj's underlying member method code with example usage: obj.test_vocab_token_to_load_id() without return types