class_docstr: Container abstracting a list of callbacks.
class_docstr_tok: ["Container","abstracting","a","list","of","callbacks","."]
docstr: Helper function for on_{train|test|predict}_end methods.
docstr_tok: ["Helper","function","for","on_","{","train|test|predict","}","_end","methods","."]
code: def _call_end_hook(self, mode):
      """Helper function for on_{train|test|predict}_end methods."""
      if mode == ModeKeys.TRAIN:
          self.on_train_end()
      elif mode == ModeKeys.TEST:
          self.on_test_end()
      else:
          self.on_predict_end()
  
imports: import collections
  import logging
  import time
  import typing
  import numpy
  from elegy.callbacks.sigint import SigInt, SigIntMode
  from .callback import Callback
  from .history import History
  from .progbar_logger import ProgbarLogger
label_desc: Use image node_id 10 for calling the CallbackList obj's underlying member method code with example usage: obj._call_end_hook(mode) without return types