def get_resource(self, host, pid, rsrc):
        """return a filename for the resource, or False if rule must be
        applied, or True if client must wait to get the resource"""
        key = host + ':' + rsrc
        try: # JUST HAND BACK THE RESOURCE
            return self.resources[key]
        except __HOLE__:
            if key in self.locks:
                return True # TELL CLIENT TO WAIT
            else:
                return False # TELL CLIENT TO ACQUIRE IT VIA RULE
dataset/ETHPy150Open cjlee112/pygr/pygr/coordinator.py/ResourceController.get_resource