code: def _is_activation_checkpoint_available(gm: GraphModule):
      for n in gm.graph.nodes:
          if (
              hasattr(n, "activation_checkpoint")
              and getattr(n, "activation_checkpoint") is not None
          ):
              return True
  
imports: import copy
  import re
  from typing import Callable
  import pytest
  import torch
  import torchvision.models
  from torch.fx import GraphModule
  import colossalai
  from colossalai.fx import ColoTracer
  from colossalai.fx._compatibility import is_compatible_with_meta
  from colossalai.fx.graph_module import ColoGraphModule
  from colossalai.fx.passes.meta_info_prop import MetaInfoProp
  from colossalai.legacy.core import global_context
  from colossalai.testing import rerun_if_address_is_in_use, spawn
label_desc: Use image node_id 1 for calling a global function with example usage: _is_activation_checkpoint_available(gm) and returns: True