<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_trivial_worker(self, state):
 """ If it's not an assistant having only tasks that are without requirements. We have to pass the state parameter for optimization reasons. """

        if self.assistant:
            return False
        return all(not task.resources for task in self.get_tasks(state, PENDING))