nodes: 0, module; 1, function_definition; 2, function_name:sorted; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, default_parameter; 8, expression_statement; 9, return_statement; 10, identifier:key; 11, None; 12, identifier:reverse; 13, False; 14, comment:"""
          Uses python sort and its passed arguments to sort the input.
  
          >>> seq([2, 1, 4, 3]).sorted()
          [1, 2, 3, 4]
  
          :param key: sort using key function
          :param reverse: return list reversed or not
          :return: sorted sequence
          """; 15, call; 16, attribute; 17, argument_list; 18, identifier:self; 19, identifier:_transform; 20, call; 21, attribute; 22, argument_list; 23, identifier:transformations; 24, identifier:sorted_t; 25, keyword_argument; 26, keyword_argument; 27, identifier:key; 28, identifier:key; 29, identifier:reverse; 30, identifier:reverse
code: def sorted(self, key=None, reverse=False):
          """
          Uses python sort and its passed arguments to sort the input.
  
          >>> seq([2, 1, 4, 3]).sorted()
          [1, 2, 3, 4]
  
          :param key: sort using key function
          :param reverse: return list reversed or not
          :return: sorted sequence
          """
          return self._transform(transformations.sorted_t(key=key, reverse=reverse))