class_docstr: 用来管理训练过程中的所有的 callback 实例；
class_docstr_tok: ["\u7528\u6765\u7ba1\u7406\u8bad\u7ec3\u8fc7\u7a0b\u4e2d\u7684\u6240\u6709\u7684","callback","\u5b9e\u4f8b\uff1b"]
docstr: 在实际的运行过程中，我们会将具体的一个 callback 实例拆分为单独的一个个 callback 函数，然后将它们加在一个字典里，该字典的键值就是
  一个个 callback 时机，也就是 `Event` 的类别；
  如果一个 callback 类的 callback 函数并不具备任何作用，我们实际并不会将其加在字典当中；
docstr_tok: ["\u5728\u5b9e\u9645\u7684\u8fd0\u884c\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u4f1a\u5c06\u5177\u4f53\u7684\u4e00\u4e2a","callback","\u5b9e\u4f8b\u62c6\u5206\u4e3a\u5355\u72ec\u7684\u4e00\u4e2a\u4e2a","callback","\u51fd\u6570\uff0c\u7136\u540e\u5c06\u5b83\u4eec\u52a0\u5728\u4e00\u4e2a\u5b57\u5178\u91cc\uff0c\u8be5\u5b57\u5178\u7684\u952e\u503c\u5c31\u662f","\u4e00\u4e2a\u4e2a","callback","\u65f6\u673a\uff0c\u4e5f\u5c31\u662f","`","Event","`","\u7684\u7c7b\u522b\uff1b","\u5982\u679c\u4e00\u4e2a","callback","\u7c7b\u7684","callback","\u51fd\u6570\u5e76\u4e0d\u5177\u5907\u4efb\u4f55\u4f5c\u7528\uff0c\u6211\u4eec\u5b9e\u9645\u5e76\u4e0d\u4f1a\u5c06\u5176\u52a0\u5728\u5b57\u5178\u5f53\u4e2d\uff1b"]
code: def initialize_class_callbacks(self):
      r"""
      在实际的运行过程中，我们会将具体的一个 callback 实例拆分为单独的一个个 callback 函数，然后将它们加在一个字典里，该字典的键值就是
      一个个 callback 时机，也就是 `Event` 的类别；
      如果一个 callback 类的 callback 函数并不具备任何作用，我们实际并不会将其加在字典当中；
      """
      for each_callback in self.class_callbacks:
          self._need_reproducible_sampler |= (
              each_callback.need_reproducible_sampler
          )
          self.dissect_one_callback(each_callback)
  
imports: import inspect
  from typing import List, Optional, Dict, Sequence
  from collections import defaultdict
  from .callback_event import Event
  from .callback import Callback
  from fastNLP.core.log import logger
  from .progress_callback import ProgressCallback, choose_progress_callback
  from ..utils.exceptions import EarlyStopException
  from ..utils.utils import _get_fun_msg
label_desc: Use image node_id 2 for calling the CallbackManager obj's underlying member method code with example usage: obj.initialize_class_callbacks() without return types