def _dict_equal_or_subset(check_dict, obj_dict):
    if not isinstance(check_dict, dict):
        return False
    for key, value in check_dict.items():
        if (
            key not in obj_dict or
            not _obj_equal_or_subset(check_dict[key], obj_dict[key])
        ):
            return False
    return True
Converts a string argument to a subclass of basestring.
dataset/ETHPy150Open openstack/compass-core/compass/db/api/utils.py/_dict_equal_or_subset--crossover with--dataset/ETHPy150Open limodou/uliweb/uliweb/core/template.py/to_basestring