def _ensureInit(self):
        if not hasattr(self, '_routes'):
            Resource.__init__(self)
            print(TerminalColor.warning(
                'WARNING: Resource subclass "%s" did not call '
                '"Resource__init__()" from its constructor.' %
                self.__class__.__name__))
Calls ``Resource.__init__`` if the subclass constructor did not already
dataset/ETHPy150Open girder/girder/girder/api/rest.py/Resource._ensureInit