code: def load_template_generator(
      config: CfgNode,
      **kwargs,
  ):
      template_generator = None
      if config.classification.auto_t:
          template_generator_class = TEMPLATE_GENERATOR_CLASS[
              config.template_generator.plm.model_name
          ]
          template_generator = template_generator_class.from_config(
              config=config.template_generator, **kwargs
          )
      return template_generator
  
imports: from yacs.config import CfgNode
  from openprompt.utils.utils import signature
  from typing import Optional
  from transformers.tokenization_utils import PreTrainedTokenizer
  from transformers.utils.dummy_pt_objects import PreTrainedModel
  from .manual_template import ManualTemplate
  from .manual_verbalizer import ManualVerbalizer
  from .mixed_template import MixedTemplate
  from .one2one_verbalizer import One2oneVerbalizer
  from .automatic_verbalizer import AutomaticVerbalizer
  from .prefix_tuning_template import PrefixTuningTemplate
  from .knowledgeable_verbalizer import KnowledgeableVerbalizer
  from .ptuning_prompts import PtuningTemplate
  from .ptr_prompts import PTRTemplate, PTRVerbalizer
  from .knowledgeable_verbalizer import KnowledgeableVerbalizer
  from .prefix_tuning_template import PrefixTuningTemplate
  from .soft_template import SoftTemplate
  from .prompt_generator import T5TemplateGenerator, TemplateGenerator, VerbalizerGenerator, RobertaVerbalizerGenerator
  from .generation_verbalizer import GenerationVerbalizer
  from .soft_verbalizer import SoftVerbalizer
  from .prototypical_verbalizer import ProtoVerbalizer
label_desc: Use image node_id 3 for calling a global function with example usage: load_template_generator(config) and returns: template_generator