code: def test_subword_text_encoder_encode(self):
      s = "the quick brown fox jumps over the lazy dog"
      encoded = subword_text_encoder_ops.subword_text_encoder_encode(
          s, vocab_file
      )
      self.assertAllEqual(
          encoded, [2, 3, 4, 5, 6, 7, 8, 9, 2, 11, 12, 1]
      )
  
file_path: tensor2tensor/tensor2tensor/data_generators/ops/subword_text_encoder_ops_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from tensor2tensor.data_generators.ops import subword_text_encoder_ops
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling the SubwordTextEncoderOpsTest obj's underlying member method code with example usage: obj.test_subword_text_encoder_encode() without return types