code: def test_delete_checkpoints() -> None:
      base_conf_path = conf.fixtures_path(
          "no_op/single-default-ckpt.yaml"
      )
  
      config = conf.load_config(str(base_conf_path))
      config["checkpoint_storage"] = {
          "type": "shared_fs",
          "host_path": "/tmp",
          "storage_path": "delete-checkpoints-e2etest",
          "save_trial_latest": 10,
      }
      config["min_checkpoint_period"] = {"batches": 10}
  
      exp_id_1 = exp.run_basic_test_with_temp_config(
          config,
          model_def_path=conf.fixtures_path("no_op"),
          expected_trials=1,
      )
  
      exp_id_2 = exp.run_basic_test_with_temp_config(
          config,
          model_def_path=conf.fixtures_path("no_op"),
          expected_trials=1,
      )
  
      test_session = api_utils.determined_test_session()
      exp_1_checkpoints = bindings.get_GetExperimentCheckpoints(
          session=test_session, id=exp_id_1
      ).checkpoints
      exp_2_checkpoints = bindings.get_GetExperimentCheckpoints(
          session=test_session, id=exp_id_2
      ).checkpoints
      assert (
          len(exp_1_checkpoints) > 0
      ), f"no checkpoints found in experiment with ID:{exp_id_1}"
      assert (
          len(exp_2_checkpoints) > 0
      ), f"no checkpoints found in experiment with ID:{exp_id_2}"
  
      d_exp_1_checkpoint_uuids = [
          exp_1_checkpoints[d_index].uuid
          for d_index in random.sample(range(len(exp_1_checkpoints)), 2)
      ]
      d_exp_2_checkpoint_uuids = [
          exp_2_checkpoints[d_index].uuid
          for d_index in random.sample(range(len(exp_2_checkpoints)), 2)
      ]
  
      d_checkpoint_uuids = (
          d_exp_1_checkpoint_uuids + d_exp_2_checkpoint_uuids
      )
      print(f"checkpoints uuids to be deleteted: {d_checkpoint_uuids}")
      # ensure checkpoint directories exist:
      checkpoint_config = config["checkpoint_storage"]
      storage_manager = storage.build(
          checkpoint_config, container_path=None
      )
  
      for uuid in d_checkpoint_uuids:
          try:
              storage_manager.restore_path(uuid)
          except errors.CheckpointNotFound:
              pytest.fail(
                  f"checkpoint directory with uuid: {uuid} was not created."
              )
  
      delete_body = bindings.v1DeleteCheckpointsRequest(
          checkpointUuids=d_checkpoint_uuids
      )
      bindings.delete_DeleteCheckpoints(
          session=test_session, body=delete_body
      )
  
      wait_for_gc_to_finish([exp_id_1, exp_id_2])
  
      for d_c in d_checkpoint_uuids:
          ensure_checkpoint_deleted(test_session, d_c, storage_manager)
  
imports: import json
  import os
  import random
  import sys
  import tempfile
  import time
  from typing import Any, Dict, List, Set, Tuple
  import pexpect
  import pytest
  from determined import errors
  from determined.common import api, storage, util
  from determined.common.api import authentication, bindings, certs
  from determined.common.api.bindings import checkpointv1State
  from tests import api_utils
  from tests import config
  from tests import experiment
  from .test_users import det_spawn
label_desc: Use image node_id 7 for calling a global function with example usage: test_delete_checkpoints() without return types