code: def _initialize(self, act_chkpt_config_dict):
      self.partition_activations = get_scalar_param(
          act_chkpt_config_dict,
          ACT_CHKPT_PARTITION_ACTIVATIONS,
          ACT_CHKPT_PARTITION_ACTIVATIONS_DEFAULT,
      )
  
      self.contiguous_memory_optimization = get_scalar_param(
          act_chkpt_config_dict,
          ACT_CHKPT_CONTIGUOUS_MEMORY_OPTIMIZATION,
          ACT_CHKPT_CONTIGUOUS_MEMORY_OPTIMIZATION_DEFAULT,
      )
  
      self.cpu_checkpointing = get_scalar_param(
          act_chkpt_config_dict,
          ACT_CHKPT_CPU_CHECKPOINTING,
          ACT_CHKPT_CPU_CHECKPOINTING_DEFAULT,
      )
  
      self.number_checkpoints = get_scalar_param(
          act_chkpt_config_dict,
          ACT_CHKPT_NUMBER_CHECKPOINTS,
          ACT_CHKPT_NUMBER_CHECKPOINTS_DEFAULT,
      )
  
      self.profile = get_scalar_param(
          act_chkpt_config_dict,
          ACT_CHKPT_PROFILE,
          ACT_CHKPT_PROFILE_DEFAULT,
      )
  
      self.synchronize_checkpoint_boundary = get_scalar_param(
          act_chkpt_config_dict,
          ACT_CHKPT_SYNCHRONIZE_CHECKPOINT_BOUNDARY,
          ACT_CHKPT_SYNCHRONIZE_CHECKPOINT_BOUNDARY_DEFAULT,
      )
  
imports: from deepspeed.runtime.config_utils import get_scalar_param, DeepSpeedConfigObject
label_desc: Use image node_id 2 for calling the DeepSpeedActivationCheckpointingConfig obj's underlying member method code with example usage: obj._initialize(act_chkpt_config_dict) without return types