nodes: 0, module; 1, function_definition; 2, function_name:all; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, dictionary_splat_pattern; 8, expression_statement; 9, expression_statement; 10, if_statement; 11, expression_statement; 12, return_statement; 13, identifier:sort; 14, None; 15, identifier:kwargs; 16, comment:""" Returns a list of media from this library section.
  
              Parameters:
                      sort (string): The sort string
          """; 17, assignment; 18, comparison_operator:sort is not None; 19, block; 20, assignment; 21, call; 22, identifier:sortStr; 23, string; 24, identifier:sort; 25, None; 26, expression_statement; 27, identifier:key; 28, binary_operator:'/library/sections/%s/all%s' % (self.key, sortStr); 29, attribute; 30, argument_list; 31, assignment; 32, string; 33, tuple; 34, identifier:self; 35, identifier:fetchItems; 36, identifier:key; 37, dictionary_splat; 38, identifier:sortStr; 39, binary_operator:'?sort=' + sort; 40, string_content:/library/sections/%s/all%s; 41, attribute; 42, identifier:sortStr; 43, identifier:kwargs; 44, string; 45, identifier:sort; 46, identifier:self; 47, identifier:key; 48, string_content:?sort=
code: def all(self, sort=None, **kwargs):
          """ Returns a list of media from this library section.
  
              Parameters:
                      sort (string): The sort string
          """
          sortStr = ''
          if sort is not None:
              sortStr = '?sort=' + sort
          
          key = '/library/sections/%s/all%s' % (self.key, sortStr)
          return self.fetchItems(key, **kwargs)