code: def remove_dir(directory: StrPath) -> None:
      """Remove a directory.
  
      If the directory does not exist, don't raise.
  
      Args:
          directory (Union[str, PathLike[str]]): The directory to remove.
      """
      shutil.rmtree(directory, ignore_errors=True)
      logging.debug(f"Directory removed: {directory}")
  
file_path: datasets-server/libs/libcommon/src/libcommon/storage.py
imports: import logging
  import shutil
  from os import PathLike, makedirs
  from pathlib import Path
  from typing import Optional, Union
  from appdirs import user_cache_dir
  from libcommon.constants import DESCRIPTIVE_STATISTICS_CACHE_APPNAME, DUCKDB_INDEX_CACHE_APPNAME, HF_DATASETS_CACHE_APPNAME, PARQUET_METADATA_CACHE_APPNAME
label_desc: Use image node_id 7 for calling a global function with example usage: remove_dir(directory) without return types