docstr: Return used cache for the specified run-cached stages.
docstr_tok: ["Return","used","cache","for","the","specified","run-cached","stages","."]
code: def get_used_objs(self, used_run_cache, *args, **kwargs):
      """Return used cache for the specified run-cached stages."""
      from collections import defaultdict
  
      used_objs = defaultdict(set)
      for key, value in used_run_cache:
          entry = self._load_cache(key, value)
          if not entry:
              continue
          stage = self._create_stage(entry)
          for odb, objs in stage.get_used_objs(*args, **kwargs).items():
              used_objs[odb].update(objs)
      return used_objs
  
imports: import os
  from contextlib import contextmanager
  from typing import TYPE_CHECKING, List, Optional, Tuple
  from funcy import first
  from dvc import fs
  from dvc.config import RemoteConfigError
  from dvc.exceptions import CollectCacheError, DvcException
  from dvc.log import logger
  from dvc.utils import dict_sha256, relpath
label_desc: Use image node_id 14 for calling the StageCache obj's underlying member method code with example usage: obj.get_used_objs(used_run_cache) and returns: used_objs