<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def select(self, fixed):
 """ Return a subset of variables according to ``fixed``. """

        names = [n for n in self.names() if self[n].isfixed == fixed]
        return Variables({n: self[n] for n in names})