code: def _end_of_ckpt(node: Node, ckpt_level: int) -> bool:
      """
      Check if the node could end the ckpt region at `ckpt_level`
      """
      if len(node.meta["info"].activation_checkpoint) > ckpt_level:
          return (
              node.meta["info"].activation_checkpoint[ckpt_level]
              is not None
          )
      return True
  
file_path: colossalai/colossalai/_analyzer/fx/codegen.py
imports: from typing import Any, Dict, List, Tuple
  import torch
  from torch.fx.graph import PythonCode, _custom_builtins, _format_target, _is_from_torch, _Namespace, _origin_type_map, _register_custom_builtin, inplace_methods, magic_methods
  from torch.fx.node import Argument, Node, _get_qualified_name, _type_repr, map_arg
  import colossalai
  from colossalai.fx._compatibility import compatibility
label_desc: Use image node_id 4 for calling a global function with example usage: _end_of_ckpt(node, ckpt_level) and returns: True, unknown