docstr: Remove all staging copies of local files.
  
  We made a staging copy of each local file to freeze it at "add" time.
  We need to delete them once we've uploaded the file or confirmed we
  already have a committed copy.
docstr_tok: ["Remove","all","staging","copies","of","local","files",".","We","made","a","staging","copy","of","each","local","file","to","freeze","it","at","``","add","''","time",".","We","need","to","delete","them","once","we","'ve","uploaded","the","file","or","confirmed","we","already","have","a","committed","copy","."]
code: def _cleanup_staged_entries(self) -> None:
      """Remove all staging copies of local files.
  
      We made a staging copy of each local file to freeze it at "add" time.
      We need to delete them once we've uploaded the file or confirmed we
      already have a committed copy.
      """
      staging_dir = get_staging_dir()
      for entry in self._manifest.entries.values():
          if entry.local_path and entry.local_path.startswith(
              staging_dir
          ):
              try:
                  os.chmod(entry.local_path, 0o600)
                  os.remove(entry.local_path)
              except OSError:
                  pass
  
file_path: wandb/wandb/sdk/artifacts/artifact_saver.py
imports: import concurrent.futures
  import json
  import os
  import sys
  import tempfile
  from typing import TYPE_CHECKING, Awaitable, Dict, Optional, Sequence, Tuple
  import wandb
  import wandb.filesync.step_prepare
  from wandb import util
  from wandb.sdk.artifacts.artifact_manifest import ArtifactManifest
  from wandb.sdk.artifacts.staging import get_staging_dir
  from wandb.sdk.lib.hashutil import B64MD5, b64_to_hex_id, md5_file_b64
  from wandb.sdk.lib.paths import URIStr
label_desc: Use image node_id 5 for calling the ArtifactSaver obj's underlying member method code with example usage: obj._cleanup_staged_entries() without return types