code: def insert_head_doc(docstring, head_doc=""):
      if len(head_doc) > 0:
          return docstring.replace(
              "one of the model classes of the library ",
              f"one of the model classes of the library (with a {head_doc} head) ",
          )
      return docstring.replace(
          "one of the model classes of the library ",
          "one of the base model classes of the library ",
      )
  
imports: import importlib
  from collections import OrderedDict
  from .configuration_auto import AutoConfig, model_type_to_module_name, replace_list_option_in_docstrings
  from .dynamic import get_class_from_dynamic_module
  from fastNLP.transformers.torch.configuration_utils import PretrainedConfig
  from fastNLP.transformers.torch.file_utils import copy_func
  from fastNLP.core.log import logger
label_desc: Use image node_id 2 for calling a global function with example usage: insert_head_doc(docstring, head_doc) and returns: docstring, docstring