from typing import Dict


def remove_invalid_keys(dict_in: Dict, invalid_keys: list) -> Dict:
    """Remove invalid keys from dict

    Args:
        dict_in (Dict): Dictionary to remove keys

        invalid_keys (list): List of keys to remove in `dict_in`
    Returns:
        Dict: Dict without invalid keys
    """
    _dict = dict_in.copy()

    for invalid_key in invalid_keys:
        if invalid_key in _dict:
            del _dict[invalid_key]
    return _dict