human
I wrote the below code

    def perform():
        if (not worker._pending):
            return False
        if (worker._pending[0] is NoMoreWork):
            return False
        worker._pending.pop(0)()
        return True
    worker = MemoryWorker()
    return (worker, perform)

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def createMemoryWorker():