code: def prepare_ctrl_input(args, _, tokenizer, prompt_text):
      if args.temperature > 0.7:
          logger.info(
              "CTRL typically works better with lower temperatures (and lower top_k)."
          )
  
      encoded_prompt = tokenizer.encode(
          prompt_text, add_special_tokens=False
      )
      if not any(
          encoded_prompt[0] == x
          for x in tokenizer.control_codes.values()
      ):
          logger.info(
              "WARNING! You are not starting your generation from a control code so you won't get good results"
          )
      return prompt_text
  
file_path: deepspeedexamples/inference/huggingface/text-generation/run-generation-script/test-run-generation.py
imports: import argparse
  import logging
  import time
  import numpy
  import torch
  from transformers.models.gpt2.modeling_gpt2 import GPT2Block
  from transformers import CTRLLMHeadModel, CTRLTokenizer, GPT2LMHeadModel, GPT2Tokenizer, GPTNeoModel, OpenAIGPTLMHeadModel, OpenAIGPTTokenizer, TransfoXLLMHeadModel, TransfoXLTokenizer, XLMTokenizer, XLMWithLMHeadModel, XLNetLMHeadModel, XLNetTokenizer
label_desc: Use image node_id 2 for calling a global function with example usage: prepare_ctrl_input(args, _, tokenizer, prompt_text) and returns: prompt_text