class_docstr: Read-only view of Index.data using filtered stages.
class_docstr_tok: ["Read-only","view","of","Index.data","using","filtered","stages","."]
code: def data_keys(self) -> Dict[str, Set["DataIndexKey"]]:
      ret: Dict[str, Set["DataIndexKey"]] = defaultdict(set)
  
      for out, filter_info in self._filtered_outs:
          if not out.use_cache:
              continue
  
          workspace, key = out.index_key
          if filter_info and out.fs.isin(filter_info, out.fs_path):
              key = key + out.fs.relparts(filter_info, out.fs_path)
          ret[workspace].add(key)
  
      return dict(ret)
  
imports: import logging
  import time
  from collections import defaultdict
  from functools import partial
  from itertools import chain
  from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, Iterator, List, NamedTuple, Optional, Set, Tuple, Union
  from funcy.debug import format_time
  from dvc.dependency import ParamsDependency
  from dvc.fs import LocalFileSystem
  from dvc.fs.callbacks import DEFAULT_CALLBACK
  from dvc.log import logger
  from dvc.utils.objects import cached_property
label_desc: Use image node_id 8 for calling the IndexView obj's underlying member method code with example usage: obj.data_keys() and returns: dict