class_docstr: vocab op test 
class_docstr_tok: ["vocab","op","test"]
docstr: test vocab id to token 
docstr_tok: ["test","vocab","id","to","token"]
code: def test_vocab_id_to_token(self):
      """test vocab id to token"""
      with self.cached_session(use_gpu=False, force_gpu=False):
          vocab = [
              "<s>",
              "</s>",
              "<unk>",
              "<epsilon>",
              "a",
              "b c d e",
              "øut",
              "über",
              "♣",
              "愤青",
              "←",
          ]
          self.assertEqual(
              "<s>",
              py_x_ops.vocab_id_to_token(0, vocab=vocab)
              .eval()
              .decode("utf-8"),
          )
          self.assertEqual(
              "a",
              py_x_ops.vocab_id_to_token(4, vocab=vocab)
              .eval()
              .decode("utf-8"),
          )
  
          res = py_x_ops.vocab_id_to_token([5, 8], vocab=vocab).eval()
          res = [r.decode("utf-8") for r in res]
          self.assertAllEqual(["b c d e", "♣"], res)
          self.assertEqual(
              "<unk>",
              py_x_ops.vocab_id_to_token(2, vocab=vocab)
              .eval()
              .decode("utf-8"),
          )
          self.assertEqual(
              "<unk>",
              py_x_ops.vocab_id_to_token(-1, vocab=vocab)
              .eval()
              .decode("utf-8"),
          )
          self.assertEqual(
              "<unk>",
              py_x_ops.vocab_id_to_token(11, vocab=vocab)
              .eval()
              .decode("utf-8"),
          )
  
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 5 for calling the VocabOpsTest obj's underlying member method code with example usage: obj.test_vocab_id_to_token() without return types