code: def test_find_latest_checkpoint_local(tmpdir):
      """Tests that we identify the latest available checkpoint correctly.
  
      When new checkpoints are created, they should be the latest available ones.
      When the latest checkpoint is deleted, we should go back to the previous one.
      """
  
imports: import json
  import os
  from typing import Dict, Union
  import pytest
  import ray
  from ray import train, tune
  from ray.train._internal.storage import StorageContext
  from ray.tune.trainable import wrap_function
  from ray.train.tests.util import create_dict_checkpoint
label_desc: Use image node_id 5 for calling a global function with example usage: test_find_latest_checkpoint_local(tmpdir) without return types