def _resolve_fs(self, path, create=False):
        """
        Resolves a list of keys to this or a descendent feature structure.
        """
        fs = self
        for name in path:
            try:
                fs = fs._elements[name]
            except __HOLE__:
                if create:
                    fs = fs._elements[name] = FeatureStructure()
                else:
                    fs = None
            if not isinstance(fs, FeatureStructure):
                raise KeyError('Could not resolve feature structure for path %r. Got %r' % (path, fs))
        return fs
dataset/ETHPy150Open cidles/graf-python/src/graf/annotations.py/FeatureStructure._resolve_fs