code: def _find_newest_experiment_checkpoint(
      experiment_dir: str,
  ) -> Optional[str]:
      """Returns file name of most recently created experiment checkpoint.
  
      Args:
          experiment_dir: Local or remote path to the experiment directory
              containing at least one experiment checkpoint file.
  
      Returns:
          str: The local or remote path to the latest experiment checkpoint file
              based on timestamp. None if no experiment checkpoints were found.
      """
      from ray.tune.analysis import ExperimentAnalysis
  
      fs, path = get_fs_and_path(experiment_dir)
      return ExperimentAnalysis._find_newest_experiment_checkpoint(
          fs=fs, experiment_fs_path=path
      )
  
imports: from collections import Counter
  from dataclasses import dataclass
  from pathlib import Path
  from typing import Callable, Dict, Optional, Tuple, Union
  import click
  import logging
  import os
  import time
  import warnings
  from ray.train._internal.storage import StorageContext, get_fs_and_path, _download_from_fs_path, _list_at_fs_path
  from ray.tune.experiment import Trial
  from ray.tune.impl.out_of_band_serialize_dataset import out_of_band_serialize_dataset
label_desc: Use image node_id 3 for calling a global function with example usage: _find_newest_experiment_checkpoint(experiment_dir) and returns: ExperimentAnalysis