code: def run_partition_activations_test(self, test_config, r_tol):
      print("\n")
      print("{0}: starting......".format(self.id()))
  
      baseline_prefix = "gpt2_func_"
      prefix = "gpt2_partition_activation_"
  
      deepspeed_config = test_config["json"]
      baseline_deepspeed_config = False
      cpu_optimizer_flag = self.gen_cpu_optimizer_flag(
          test_config, True
      )
  
      # baseline run...
      # turnoff deepspeed if baseline deepspeed config
      # is not provided
      if not "baseline" in test_config:
          test_config["deepspeed"] = False
      else:
          test_config["json"] = test_config["baseline"]
          baseline_prefix += test_config["json"][0:-5]
          baseline_deepspeed_config = True
  
      test_config["other_args"] = f'"{cpu_optimizer_flag}"'
      base_file = self.gen_output_name(
          test_config,
          baseline_prefix,
          baseline_config=baseline_deepspeed_config,
      )
  
      # skip baseline run if it exists.
      if not self.has_loss_data(base_file):
          print("{0}: baseline run.".format(self.id()))
          self.run_gpt2_test(test_config, base_file)
      else:
          print("{0}: baseline exists.".format(self.id()))
  
      # DeepSpeed run...
      test_config["deepspeed"] = True
      cpu_optimizer_flag = self.gen_cpu_optimizer_flag(
          test_config, False
      )
      test_config[
          "other_args"
      ] = f'"--deepspeed-activation-checkpointing {cpu_optimizer_flag}"'
      test_config["json"] = deepspeed_config
  
      print("{0}: DeepSpeed run.".format(self.id()))
      test_file = self.gen_output_name(test_config, prefix)
      self.run_gpt2_test(test_config, test_file)
  
      return self.check_parity(base_file, test_file, r_tol)
  
imports: import unittest
  import os
  import re
  from .test_common import BaseTestCase
label_desc: Use image node_id 23 for calling the GPT2FuncTestCase obj's underlying member method code with example usage: obj.run_partition_activations_test(test_config, r_tol) and returns: self