class_docstr: Encode/decodes between strings and integer representations.
class_docstr_tok: ["Encode\/decodes","between","strings","and","integer","representations","."]
code: def encode(self, inputs: jnp.ndarray) -> jnp.ndarray:
      return jnp.concatenate([inputs, jnp.array([self.eos_id])])
  
file_path: evojax/evojax/task/seq2seq.py
imports: import numpy
  from typing import Tuple
  import jax
  import jax.numpy
  from jax import random
  from flax.struct import dataclass
  from evojax.task.base import VectorizedTask
  from evojax.task.base import TaskState
label_desc: Use image node_id 2 for calling the CharacterTable obj's underlying member method code with example usage: obj.encode(inputs) and returns: jnp