<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def pack_pipeline(self, commands):
        '''Packs pipeline commands into bytes.'''
        return b''.join(
            starmap(lambda *args: b''.join(self._pack_command(args)),
                    (a for a, _ in commands)))