def contribute_to_state(self, state):
        try:
            contribute = state.contribute_to_state
        except __HOLE__:
            # set default state attributes.
            return self.contribute_to_object(state, {
                'actor': self,
                'agent': self.agent,
                'connection': self.connection,
                'log': self.log,
                'Next': self.Next,
                'NoRouteError': self.NoRouteError,
                'NoReplyError': self.NoReplyError,
                'add_binding': self._add_binding,
                'remove_binding': self._remove_binding,
            })
        else:
            return contribute(self)
dataset/ETHPy150Open celery/cell/cell/actors.py/Actor.contribute_to_state