<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_subnets(self, vlan):
 """Return the subnets for the `vlan`."""

        return vlan._origin.Subnets([
            subnet
            for subnet in self.subnets
            if subnet.vlan.id == vlan.id
        ])