code: def _experiment_checkpoint_exists(experiment_dir: str) -> bool:
      return bool(
          _find_newest_experiment_checkpoint(
              experiment_dir=experiment_dir
          )
      )
  
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 2 for calling a global function with example usage: _experiment_checkpoint_exists(experiment_dir) and returns: bool