code: def _end_of_ckpt(node: Node, check_idx: int) -> bool:
      """Check if the node could end the ckpt region
      Args:
          node (Node): torch.fx.Node
          check_idx (int): the index of checkpoint level for
          nested checkpoint
      Returns:
          bool
      """
      if "activation_checkpoint" in node.meta:
          if isinstance(node.meta["activation_checkpoint"], list):
              return (
                  node.meta["activation_checkpoint"][check_idx] == None
              )
          else:
              return False
      else:
          return True
  
file_path: colossalai/colossalai/fx/codegen/activation_checkpoint_codegen.py
imports: from typing import Any, Dict, Iterable, List, Tuple
  import torch
  import colossalai
label_desc: Use image node_id 10 for calling a global function with example usage: _end_of_ckpt(node, check_idx) and returns: True, unknown, False