def _get_path(self, path):
        path = path.strip('/')

        if path == '':
            return self

        if path in '/':
            dirname, subpath = path.split('/', 1)
            subdir = self[dirname]

            if not isinstance(subdir, TreeObject):
                #raise ObjectTypeMismatch('Not a directory')
                raise KeyError

            return subdir[subpath]

        else:
            return self[path]
dataset/ETHPy150Open nakamuray/blikit/blikit/models.py/TreeObject._get_path/swapped operands of `in`