code: def get_few_shot_prefix(
      conv: Conversation,
      few_shot_data: List[str],
      tokenizer: Optional[AutoTokenizer],
      language: str,
      max_tokens: int,
  ) -> str:
      """
      Get few shot prefix.
  
      Args:
          conv: Conversation template.
          few_shot_examples: Few shot examples to generate few shot prompt prefix.
  
      Returns:
          Few shot prompt prefix.
      """
  
      # First few shot data is something like "The following are questions about xxx".
      few_shot_prefix = few_shot_data[0] + "\n\n"
  
      output = None
      for i in range(1, len(few_shot_data)):
          few_shot_prefix = few_shot_prefix + few_shot_data[i] + "\n\n"
  
          if (
              len(tokenizer([few_shot_prefix]).input_ids[0])
              <= max_tokens
          ):
              output = few_shot_prefix
          else:
              break
  
      return output if output is not None else few_shot_prefix
  
file_path: ColossalAI/applications/ColossalEval/colossal_eval/utils/conversation.py
imports: import dataclasses
  from enum import Enum, auto
  from typing import Dict, List, Optional, Tuple
  from transformers import AutoTokenizer
label_desc: Use image node_id 1 for calling a global function with example usage: get_few_shot_prefix(conv, few_shot_data, tokenizer, language, max_tokens) and returns: unknown