def filter_query(filter_dict, required_keys):
    """Ensure that the dict has all of the information available. If not, return what does"""
    if not isinstance(filter_dict, dict):
        raise TypeError('dict_list is not a list. Please try again')
    if not isinstance(required_keys, list):
        raise TypeError('dict_list is not a list. Please try again')
    available = []
    for k, v in filter_dict.items():
        if k in required_keys:
            available.append(k)
    return available
