code: def generate(self, text_list, **kwargs):
      model_inputs = self._process_texts(text_list)
      with torch.inference_mode():
          result = self._decode(model_inputs, **kwargs)
      return result
  
file_path: DeepKE/example/llm/CPM-Bee/src/cpm_live/generation/ant.py
imports: import torch
  import torch.nn.functional
  from .generation_utils import BeamHypotheses, apply_repetition_penalty, top_k_top_p_filtering
  from ..utils import pad
label_desc: Use image node_id 4 for calling the CPMAntGeneration obj's underlying member method code with example usage: obj.generate(text_list) and returns: result