def remove_missing_keys(src_dict, target_dict):
    """
    Remove keys from target_dict that are not available in src_dict

    :param src_dict: source dictionary to search for
    :param target_dict: target dictionary where keys should be removed
    """
    for key in list(target_dict.keys()):
        if key not in src_dict:
            target_dict.pop(key)
Remove keys from target_dict that are not available in src_dict

    :param src_dict: source dictionary to search for
    :param target_dict: target dictionary where keys should be removed