def __getattr__(self, attr_name):
        try:
            return _wrap(self._d_[attr_name])
        except __HOLE__:
            raise AttributeError(
                '%r object has no attribute %r' % (self.__class__.__name__, attr_name))
dataset/ETHPy150Open elastic/elasticsearch-dsl-py/elasticsearch_dsl/utils.py/AttrDict.__getattr__