code: def is_activation_to_checkpoint(item):
      """
      Is an activation to be checkpointed
      """
      global mp_size
      return (
          torch.is_tensor(item)
          and item.is_floating_point()
          and item.numel() >= mp_size
      )
  
imports: import copy
  import torch
  import contextlib
  from deepspeed import comm
  import weakref
  import mmap
  from torch import _C
  from deepspeed.runtime.config import DeepSpeedConfig
  from deepspeed.utils import logger
  from deepspeed.runtime.utils import copy_to_device, move_to_device, see_memory_usage, bwc_tensor_model_parallel_rank
  from deepspeed.utils.timer import SynchronizedWallClockTimer, FORWARD_GLOBAL_TIMER
  from deepspeed.accelerator import get_accelerator
label_desc: Use image node_id 11 for calling a global function with example usage: is_activation_to_checkpoint(item) and returns: unknown