def __getattr__(self, key):
        try:
            return object.__getattr__(self, key)
        except AttributeError:
            try:
                return super(Leaf, self).__getitem__(self._get_key(key))
            except __HOLE__:
                raise AttributeError()
dataset/ETHPy150Open gsi-upm/senpy/senpy/models.py/Leaf.__getattr__