<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_rrsets(self, zone_name, q=None, **kwargs):
 """Returns the list of RRSets in the specified zone. Arguments: zone_name -- The name of the zone. Keyword Arguments: q -- The search parameters, in a dict. Valid keys are: ttl - must match the TTL for the rrset owner - substring match of the owner name value - substring match of the first BIND field value sort -- The sort column used to order the list. Valid values for the sort field are: OWNER TTL TYPE reverse -- Whether the list is ascending(False) or descending(True) offset -- The position in the list for the first returned element(0 based) limit -- The maximum number of rows to be returned. """

        uri = "/v1/zones/" + zone_name + "/rrsets"
        params = build_params(q, kwargs)
        return self.rest_api_connection.get(uri, params)