class_docstr: Base class for TextGeneration Strategy
class_docstr_tok: ["Base","class","for","TextGeneration","Strategy"]
docstr: At the end of the single step inference, post process the inference results
  Args:
      tokens  (torch.Tensor): the context tokens
      new_token (torch.Tensor): sampled new token id
      context_length (int): the new token position in the tokens
code: def post_process(
      self,
      tokens: torch.Tensor,
      new_tokens: torch.Tensor,
      context_length: int,
  ):
      """
      At the end of the single step inference, post process the inference results
      Args:
          tokens  (torch.Tensor): the context tokens
          new_token (torch.Tensor): sampled new token id
          context_length (int): the new token position in the tokens
      """
      pass
  
imports: import abc
  import copy
  import os
  import re
  import warnings
  from typing import List, Set, Tuple
  import torch
  from transformers import CLIPImageProcessor
  from nemo.collections.nlp.modules.common.lm_utils import pad_batch
  from nemo.collections.nlp.modules.common.megatron.utils import get_ltor_masks_and_position_ids
label_desc: Use image node_id 7 for calling the TextGenerationStrategy obj's underlying member method code with example usage: obj.post_process(tokens, new_tokens, context_length) without return types