def METHOD_NAME(func: callable) -> callable:
    """ Wrapper to filter key-value pairs from a dict.
    Removes key-value pair based on the key from a dict. If the key is not
    present in the dict it is ignored.
    Parameters
    ----------
    func : callable
        The function that returns a dict.
    Returns
    -------
    callable
        The function that returns a dict, with only the specified keys kept.
    """
    @functools.wraps(func)
    def wrapper_filter(*args, field: Any = None, fields: list[Any] = None,
                       **kwargs) -> dict:
        """
        Apply filters to the results of the function. If no filters are given,
        the function returns the original dict.
        Parameters
        ----------
        *args
            Positional arguments for the function.
        field : Any, optional
            A single key to filter the dictionary on, by default None
        fields : list[Any], optional
            A list of keys to filter the dictionary on, by default None
        Returns
        -------
        dict
            The filtered dictionary.
        """
        dict_ = func(*args, **kwargs)
        if field:
            return filter_dict_keys(dict_, [field])
        return filter_dict_keys(dict_, fields)
    return wrapper_filter