nodes: 0, module; 1, function_definition; 2, function_name:iter_forks; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, default_parameter; 8, default_parameter; 9, expression_statement; 10, expression_statement; 11, expression_statement; 12, if_statement; 13, return_statement; 14, identifier:sort; 15, string; 16, identifier:number; 17, unary_operator; 18, identifier:etag; 19, None; 20, comment:"""Iterate over forks of this repository.
  
          :param str sort: (optional), accepted values:
              ('newest', 'oldest', 'watchers'), API default: 'newest'
          :param int number: (optional), number of forks to return. Default: -1
              returns all forks
          :param str etag: (optional), ETag from a previous request to the same
              endpoint
          :returns: generator of :class:`Repository <Repository>`
          """; 21, assignment; 22, assignment; 23, comparison_operator:sort in ('newest', 'oldest', 'watchers'); 24, block; 25, call; 26, integer:1; 27, identifier:url; 28, call; 29, identifier:params; 30, dictionary; 31, identifier:sort; 32, tuple; 33, expression_statement; 34, attribute; 35, argument_list; 36, attribute; 37, argument_list; 38, string; 39, string; 40, string; 41, assignment; 42, identifier:self; 43, identifier:_iter; 44, call; 45, identifier:url; 46, identifier:Repository; 47, identifier:params; 48, identifier:etag; 49, identifier:self; 50, identifier:_build_url; 51, string; 52, keyword_argument; 53, string_content:newest; 54, string_content:oldest; 55, string_content:watchers; 56, identifier:params; 57, dictionary; 58, identifier:int; 59, argument_list; 60, string_content:forks; 61, identifier:base_url; 62, attribute; 63, pair; 64, identifier:number; 65, identifier:self; 66, identifier:_api; 67, string; 68, identifier:sort; 69, string_content:sort
code: def iter_forks(self, sort='', number=-1, etag=None):
          """Iterate over forks of this repository.
  
          :param str sort: (optional), accepted values:
              ('newest', 'oldest', 'watchers'), API default: 'newest'
          :param int number: (optional), number of forks to return. Default: -1
              returns all forks
          :param str etag: (optional), ETag from a previous request to the same
              endpoint
          :returns: generator of :class:`Repository <Repository>`
          """
          url = self._build_url('forks', base_url=self._api)
          params = {}
          if sort in ('newest', 'oldest', 'watchers'):
              params = {'sort': sort}
          return self._iter(int(number), url, Repository, params, etag)