code: def verify_test_checkpoint(directory: Path) -> None:
      for k, v in mock_content.items():
          fpath = directory / k
          if len(v) == 0:
              # This is a directory
              assert fpath.exists()
          else:
              with open(fpath) as f:
                  assert f.read() == v
  
file_path: determined/harness/tests/checkpoints/test_checkpoint.py
imports: import io
  import tarfile
  from pathlib import Path
  import responses
  from responses import matchers
  from determined.common import api
  from determined.common.experimental import Checkpoint
label_desc: Use image node_id 3 for calling a global function with example usage: verify_test_checkpoint(directory) without return types