<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def list_subnets(self, retrieve_all=True, **_params):
 """Fetches a list of all subnets for a project."""

        return self.list('subnets', self.subnets_path, retrieve_all,
                         **_params)