class_docstr: A helper metaclass to ensure container classes (e.g. CallbackList) have
  implemented all the callback methods (e.g. `on_*`).
class_docstr_tok: ["A","helper","metaclass","to","ensure","container","classes","(","e.g",".","CallbackList",")","have","implemented","all","the","callback","methods","(","e.g",".","`","on_","*","`",")","."]
code: def need_override_by_subclass(mcs, attr_name: str, attr: Any) -> bool:
      return (
          (
              attr_name.startswith("on_")
              and not attr_name.startswith("on_trainer_init")
          )
          or attr_name == "setup"
      ) and callable(attr)
  
imports: from abc import ABCMeta
  import glob
  import os
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple
  import warnings
  from ray.util.annotations import PublicAPI, DeveloperAPI
  from ray.tune.utils.util import _atomic_save, _load_newest_checkpoint
label_desc: Use image node_id 4 for calling the _CallbackMeta obj's underlying member method code with example usage: obj.need_override_by_subclass(mcs, attr_name, attr) and returns: unknown