class_docstr: vocab op test 
class_docstr_tok: ["vocab","op","test"]
docstr: test token whether in vocab 
docstr_tok: ["test","token","whether","in","vocab"]
code: def test_token_in_vocab(self):
      """test token whether in vocab"""
      with self.cached_session(use_gpu=False, force_gpu=False):
          vocab = [
              "<s>",
              "</s>",
              "<unk>",
              "<epsilon>",
              "a",
              "b c d e",
              "øut",
              "über",
              "♣",
              "愤青",
              "←",
          ]
          self.assertTrue(
              py_x_ops.token_in_vocab("a", vocab=vocab).eval()
          )
          self.assertTrue(
              py_x_ops.token_in_vocab("<unk>", vocab=vocab).eval()
          )
          self.assertTrue(
              py_x_ops.token_in_vocab(["b c d e", "♣"], vocab=vocab)
              .eval()
              .all()
          )
          self.assertFalse(
              py_x_ops.token_in_vocab("unknown", vocab=vocab).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 7 for calling the VocabOpsTest obj's underlying member method code with example usage: obj.test_token_in_vocab() without return types