class_docstr: Tests utilities helping with Checkpoint management.
class_docstr_tok: ["Tests","utilities","helping","with","Checkpoint","management","."]
code: def test_get_policy_checkpoint_info_v1_1(self):
      # Create a simple (dummy) v1.0 Policy checkpoint.
      with tempfile.TemporaryDirectory() as checkpoint_dir:
          policy_state_file = os.path.join(
              checkpoint_dir, "policy_state.pkl"
          )
          Path(policy_state_file).touch()
  
          info = get_checkpoint_info(checkpoint_dir)
          self.assertTrue(info["type"] == "Policy")
          self.assertTrue(str(info["checkpoint_version"]) == "1.1")
          self.assertTrue(info["checkpoint_dir"] == checkpoint_dir)
          self.assertTrue(info["state_file"] == policy_state_file)
          self.assertTrue(info["policy_ids"] is None)
  
imports: import os
  from pathlib import Path
  import tempfile
  import unittest
  import ray
  from ray.rllib.algorithms.algorithm import Algorithm
  from ray.rllib.algorithms.algorithm_config import AlgorithmConfig
  from ray.rllib.algorithms.dqn import DQNConfig
  from ray.rllib.algorithms.ppo import PPOConfig
  from ray.rllib.examples.env.multi_agent import MultiAgentCartPole
  from ray.rllib.policy.policy import Policy
  from ray.rllib.utils.checkpoints import get_checkpoint_info, convert_to_msgpack_checkpoint, convert_to_msgpack_policy_checkpoint
  from ray.rllib.utils.test_utils import check
  from ray import tune
label_desc: Use image node_id 5 for calling the TestCheckpointUtils obj's underlying member method code with example usage: obj.test_get_policy_checkpoint_info_v1_1() without return types