code: def post_process_response(token_ids, reader, merge=True):
      """
      Post-process the decoded sequence. Truncate from the first
      <eos> and remove the <bos> and <eos> tokens currently.
      """
      eos_pos = len(token_ids)
      for i, tok_id in enumerate(token_ids):
          if tok_id == reader.eos_id:
              eos_pos = i
              break
      token_ids = token_ids[1:eos_pos]
      response = reader.tokenizer.convert_ids_to_tokens(token_ids)
      if merge:
          response = reader.tokenizer.merge_subword(response)
      return token_ids, response
  
imports: from collections import namedtuple
  import paddle
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 2 for calling a global function with example usage: post_process_response(token_ids, reader, merge) and returns: token_ids,  response