def stub(self, obj, attr=None):
        s = stub(obj, attr)
        if s not in self._stubs:
            self._stubs.append(s)
        return s
Stub an object. If attr is not None, will attempt to stub that
dataset/ETHPy150Open agoragames/chai/chai/chai.py/ChaiBase.stub