code: def copy_all_caches(cache_dir: str, mongo_host: str, dry_run: bool):
      hlog(f"Opening Sqlite dir {cache_dir}")
      with os.scandir(cache_dir) as it:
          for entry in it:
              if (
                  entry.name.endswith(_SQLITE_FILE_SUFFIX)
                  and entry.is_file()
              ):
                  organization = entry.name[: -len(_SQLITE_FILE_SUFFIX)]
                  copy_cache(
                      cache_dir=cache_dir,
                      mongo_host=mongo_host,
                      organization=organization,
                      dry_run=dry_run,
                  )
  
file_path: H2O/h2o_hf/helm/scripts/cache/copy_cache.py
imports: import argparse
  import json
  import os
  from sqlitedict import SqliteDict
  from helm.common.cache import _MongoKeyValueStore
  from helm.common.hierarchical_logger import hlog, htrack
  from typing import Optional
label_desc: Use image node_id 1 for calling a global function with example usage: copy_all_caches(cache_dir, mongo_host, dry_run) without return types