gigl.src.common.models.pyg.filter_dict#

gigl.src.common.models.pyg.utils.filter_dict(input_dict: Dict[str, Any], keys_to_keep: Iterable[str] = []) Tuple[Dict[str, Any], Dict[str, Any]]#

Filters out certain items from an input directory based on keys to keep.

Args:

input_dict: Input dictionary. keys_to_keep: Iterable of keys to keep from the input dictionary (all others will be discarded).

Returns:

remaining_kwargs: Dictionary containing the remaining keyword arguments. discarded_kwargs: Dictionary containing the discarded keyword arguments.