def create_intersection(whole_dict, sub_dict):
    """
    Reduces a dictionary to have the same keys as an another dict.
    :param whole_dict: dict, the dictionary to be reduced.
    :param sub_dict: dict, the dictionary with the required keys.
    :return: dict, the reduced dict.
    """
    reduced_dict = {}
    for parameter in sub_dict.keys():
        if whole_dict.get(parameter, None) is None:

            return {}

        reduced_dict[parameter] = whole_dict[parameter]

    return reduced_dict