def lookup_action(self, name):
        try:
            if not name:
                method = self.default_receive
            else:
                method = getattr(self.state, name)
        except __HOLE__:
            raise KeyError(name)
        if not callable(method) or name.startswith('_'):
            raise KeyError(method)
        return method
dataset/ETHPy150Open celery/cell/cell/actors.py/Actor.lookup_action