<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def all(self, stage='login_success', enabled=True, fields=None, include_fields=True, page=None, per_page=None, include_totals=False):
 """Retrieves a list of all rules. Args: stage (str, optional):
 Retrieves rules that match the execution stage (defaults to login_success). enabled (bool, optional):
 If provided, retrieves rules that match the value, otherwise all rules are retrieved. fields (list, optional):
 A list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields. include_fields (bool, optional):
 True if the fields specified are to be included in the result, False otherwise (defaults to true). page (int, optional):
 The result's page number (zero based). per_page (int, optional):
 The amount of entries per page. include_totals (bool, optional):
 True if the query summary is to be included in the result, False otherwise. See: https://auth0.com/docs/api/management/v2#!/Rules/get_rules """


        params = {
            'stage': stage,
            'fields': fields and ','.join(fields) or None,
            'include_fields': str(include_fields).lower(),
            'page': page,
            'per_page': per_page,
            'include_totals': str(include_totals).lower()
        }

        # since the default is True, this is here to disable the filter
        if enabled is not None:
            params['enabled'] = str(enabled).lower()

        return self.client.get(self._url(), params=params)