def METHOD_NAME(dict_: dict, keys: list[str]) -> dict:
    """
    Filter a dict on the specified keys. If no keys are given, the original
    dict is returned.
    Parameters
    ----------
    dict_ : dict
        The dict to filter.
    keys : list[str]
        A list of keys to keep in the dictionary
    Returns
    -------
    dict
        The filtered dict.
    """
    return {k: dict_[k] for k in keys if k in dict_} if keys else dict_