code: def __init__(self, checkpoint: bool = False):
      super().__init__()
      self.checkpoint = checkpoint
      self._use_checkpoint = checkpoint
  
file_path: ColossalAI/tests/kit/model_zoo/custom/base.py
imports: import torch.nn
  from torch.utils.checkpoint import checkpoint
label_desc: Use image node_id 1 to create a new CheckpointModule object from inherited base classes: nn with example: obj = CheckpointModule(checkpoint)