def METHOD_NAME(inputs):
  length = inputs[1]
  ids = tf.reshape(inputs[0][:length], [1, -1])
  tokens = self._tokenizer.detokenize(ids)
  return tf.strings.reduce_join(tokens.flat_values, separator=' ')