code: def test_get_set_externalized_checkpoints_cleanup(self):
      self.assertFalse(
          self.checkpoint_config.is_externalized_checkpoints_enabled()
      )
  
      self.assertEqual(
          self.checkpoint_config.get_externalized_checkpoint_cleanup(),
          ExternalizedCheckpointCleanup.NO_EXTERNALIZED_CHECKPOINTS,
      )
  
      self.checkpoint_config.enable_externalized_checkpoints(
          ExternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION
      )
  
      self.assertTrue(
          self.checkpoint_config.is_externalized_checkpoints_enabled()
      )
  
      self.assertEqual(
          self.checkpoint_config.get_externalized_checkpoint_cleanup(),
          ExternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION,
      )
  
      self.checkpoint_config.enable_externalized_checkpoints(
          ExternalizedCheckpointCleanup.DELETE_ON_CANCELLATION
      )
  
      self.assertEqual(
          self.checkpoint_config.get_externalized_checkpoint_cleanup(),
          ExternalizedCheckpointCleanup.DELETE_ON_CANCELLATION,
      )
  
file_path: flink/flink-python/pyflink/datastream/tests/test_check_point_config.py
imports: from pyflink.common import Duration
  from pyflink.datastream import CheckpointConfig, CheckpointingMode, ExternalizedCheckpointCleanup, StreamExecutionEnvironment
  from pyflink.java_gateway import get_gateway
  from pyflink.testing.test_case_utils import PyFlinkTestCase
label_desc: Use image node_id 11 for calling the CheckpointConfigTests obj's underlying member method code with example usage: obj.test_get_set_externalized_checkpoints_cleanup() without return types