Filters a dictionary by key.
The dictionary to filter
A function that returns true if the key should be included in the filtered dictionary
A new dictionary with only the keys that passed the predicate
Filters a dictionary by key.