<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def reservations(self):
 """get nodes of every reservations"""

        command = [SINFO, '--reservation']
        output = subprocess.check_output(command, env=SINFO_ENV)
        output = output.decode()
        it = iter(output.splitlines())
        next(it)
        for line in it:
            rsv = Reservation.from_sinfo(line)
            yield rsv.name, rsv