

def _find_leafs_paths(self, structure, leafs_names=('value',)):
    'Finds paths to leafs\n\n        :param structure: structure for searching\n        :param leafs_names: leafs names\n        :return: list of tuples of dicts keys to leafs\n        '

    def _keys_paths_helper(result, keys, struct):
        if isinstance(struct, dict):
            for k in sorted(six.iterkeys(struct)):
                if (k in leafs_names):
                    result.append(keys)
                else:
                    _keys_paths_helper(result, (keys + (k,)), struct[k])
        elif isinstance(struct, (tuple, list)):
            for d in struct:
                _keys_paths_helper(result, keys, d)
        else:
            pass
    leafs_paths = []
    _keys_paths_helper(leafs_paths, (), structure)
    return leafs_names._remove_private_leafs_paths(leafs_paths)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/fuel_statistics_tests/test_installation_info.py TestInstallationInfo._find_leafs_paths/VarMisuse@158/266 `self`->`leafs_names`