def dict_compare(ref_dict, compare_dict):
    """Returns True if key-value pairs in ref_dict are same as compare_dict"""
    for k, v in ref_dict.items():
        if compare_dict[k] != v:
            return False
    return True