nodes: 0, module; 1, function_definition; 2, function_name:torrents; 3, parameters; 4, block; 5, identifier:self; 6, dictionary_splat_pattern; 7, expression_statement; 8, expression_statement; 9, for_statement; 10, return_statement; 11, identifier:filters; 12, comment:"""
          Returns a list of torrents matching the supplied filters.
  
          :param filter: Current status of the torrents.
          :param category: Fetch all torrents with the supplied label.
          :param sort: Sort torrents by.
          :param reverse: Enable reverse sorting.
          :param limit: Limit the number of torrents returned.
          :param offset: Set offset (if less than 0, offset from end).
  
          :return: list() of torrent with matching filter.
          """; 13, assignment; 14, pattern_list; 15, call; 16, comment:# make sure that old 'status' argument still works; 17, block; 18, call; 19, identifier:params; 20, dictionary; 21, identifier:name; 22, identifier:value; 23, attribute; 24, argument_list; 25, expression_statement; 26, expression_statement; 27, attribute; 28, argument_list; 29, identifier:filters; 30, identifier:items; 31, assignment; 32, assignment; 33, identifier:self; 34, identifier:_get; 35, string; 36, keyword_argument; 37, identifier:name; 38, conditional_expression:'filter' if name == 'status' else name; 39, subscript; 40, identifier:value; 41, string_content:query/torrents; 42, identifier:params; 43, identifier:params; 44, string; 45, comparison_operator:name == 'status'; 46, identifier:name; 47, identifier:params; 48, identifier:name; 49, string_content:filter; 50, identifier:name; 51, string; 52, string_content:status
code: def torrents(self, **filters):
          """
          Returns a list of torrents matching the supplied filters.
  
          :param filter: Current status of the torrents.
          :param category: Fetch all torrents with the supplied label.
          :param sort: Sort torrents by.
          :param reverse: Enable reverse sorting.
          :param limit: Limit the number of torrents returned.
          :param offset: Set offset (if less than 0, offset from end).
  
          :return: list() of torrent with matching filter.
          """
          params = {}
          for name, value in filters.items():
              # make sure that old 'status' argument still works
              name = 'filter' if name == 'status' else name
              params[name] = value
  
          return self._get('query/torrents', params=params)