code: def test_encode_decode(self):
      encoder = text_encoder.TokenTextEncoder(
          vocab_list=["hi", "bye", ZH_HELLO]
      )
      ids = [i + 1 for i in [0, 1, 2, 0]]
      self.assertEqual(ids, encoder.encode("hi  bye %s hi" % ZH_HELLO))
      self.assertEqual("hi bye %shi" % ZH_HELLO, encoder.decode(ids))
  
imports: from __future__ import unicode_literals
  import os
  from absl.testing import parameterized
  import numpy
  from tensorflow_datasets import testing
  from tensorflow_datasets.core.deprecated.text import text_encoder
label_desc: Use image node_id 1 for calling the TokenTextEncoderTest obj's underlying member method code with example usage: obj.test_encode_decode() without return types