docstr: Checks that enabling activation checkpointing does not
  change the training results
code: def test_checkpointing(self) -> None:
      """
      Checks that enabling activation checkpointing does not
      change the training results
      """
      config = self._create_dino_pretraining_config(
          with_mixed_precision=True, num_epochs=1
      )
      losses_1, memory_1 = self.run_config(config, with_memory=True)
      self.assertGreater(len(losses_1), 0)
  
      config = self._create_dino_pretraining_config(
          with_mixed_precision=True,
          with_mlp_checkpoints=True,
          num_epochs=1,
      )
      losses_2, memory_2 = self.run_config(config, with_memory=True)
      self.assertGreater(len(losses_2), 0)
  
      config = self._create_dino_pretraining_config(
          with_mixed_precision=True,
          with_block_checkpoints=True,
          num_epochs=1,
      )
      losses_3, memory_3 = self.run_config(config, with_memory=True)
      self.assertGreater(len(losses_3), 0)
  
      print(losses_1, memory_1)
      print(losses_2, memory_2)
      print(losses_3, memory_3)
      self.assertAlmostEqual(losses_1[-1], losses_2[-1], places=5)
      self.assertAlmostEqual(losses_1[-1], losses_3[-1], places=5)
      self.assertLess(memory_2[-1], memory_1[-1])
      self.assertLess(memory_3[-1], memory_2[-1])
  
file_path: vissl/tests/test_dino_deit.py
imports: import os
  import unittest
  from vissl.utils.hydra_config import compose_hydra_configuration, convert_to_attrdict
  from vissl.utils.test_utils import gpu_test, in_temporary_directory, run_integration_test
label_desc: Use image node_id 5 for calling the TestDINO_DEIT obj's underlying member method code with example usage: obj.test_checkpointing() without return types