<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_lbaas_l7rules(self, l7policy, retrieve_all=True, **_params):
 """Fetches a list of all rules for L7 policy."""

        return self.list('rules', self.lbaas_l7rules_path % l7policy,
                         retrieve_all, **_params)