class_docstr: Encodes each byte to an id and appends the EOS token.
code: def encode(self, s):
      return super(ByteTextEncoderWithEos, self).encode(s) + [
          text_encoder.EOS_ID
      ]
  
imports: import numpy
  from tensor2tensor.data_generators import audio_encoder
  from tensor2tensor.data_generators import problem
  from tensor2tensor.data_generators import text_encoder
  from tensor2tensor.layers import common_audio
  from tensor2tensor.layers import common_layers
  from tensor2tensor.layers import modalities
  from tensor2tensor.utils import metrics
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling the ByteTextEncoderWithEos obj's underlying member method code with example usage: obj.encode(s) and returns: unknown