@tornado.gen.coroutine
    def getprop(self, ctx, loctx, key):
        wid = loctx.wid
        iid = loctx.iid
        uid = self.uid
        dependencies = ctx.dependencies
        app = ctx.app
        
        if iid is not None:
            res = yield app.propcache.get(('iplayerprop', iid, uid, key),
                                          dependencies=dependencies)
            if res:
                return res.val
    
        if True:
            res = yield app.propcache.get(('wplayerprop', wid, uid, key),
                                          dependencies=dependencies)
            if res:
                return res.val

        if iid is not None:
            res = yield app.propcache.get(('iplayerprop', iid, None, key),
                                          dependencies=dependencies)
            if res:
                return res.val
    
        if True:
            res = yield app.propcache.get(('wplayerprop', wid, None, key),
                                          dependencies=dependencies)
            if res:
                return res.val

        raise AttributeError('Player property "%s" is not found' % (key,))
Helper to get some starting data
dataset/ETHPy150Open erkyrath/tworld/lib/two/execute.py/PlayerProxy.getprop--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/simulation/tests/test_raw.py/_get_data