Split a dictionary into two dictionaries based on the filter.
The first one of returned dictionaries contains items that pass the filter.
The other dictionary contains the rest.
- Return type:
tuple
[dict
[TypeVar
(_Key
), TypeVar
(_Value
)], dict
[TypeVar
(_Key
), TypeVar
(_Value
)]]