nodes: 0, module; 1, function_definition; 2, function_name:sort_dictionary_list; 3, parameters; 4, block; 5, identifier:dict_list; 6, identifier:sort_key; 7, expression_statement; 8, if_statement; 9, expression_statement; 10, return_statement; 11, comment:"""
      sorts a list of dictionaries based on the value of the sort_key
  
      dict_list - a list of dictionaries
      sort_key - a string that  identifies the key to sort the dictionaries with.
  
      Test sorting a list of dictionaries:
          >>> sort_dictionary_list([{'b' : 1, 'value' : 2}, {'c' : 2, 'value' : 3}, {'a' : 3, 'value' : 1}], 'value')
          [{'a': 3, 'value': 1}, {'b': 1, 'value': 2}, {'c': 2, 'value': 3}]
      """; 12, boolean_operator; 13, block; 14, call; 15, identifier:dict_list; 16, not_operator; 17, comparison_operator:len(dict_list) == 0; 18, return_statement; 19, attribute; 20, argument_list; 21, identifier:dict_list; 22, call; 23, integer:0; 24, identifier:dict_list; 25, identifier:dict_list; 26, identifier:sort; 27, keyword_argument; 28, identifier:len; 29, argument_list; 30, identifier:key; 31, call; 32, identifier:dict_list; 33, identifier:itemgetter; 34, argument_list; 35, identifier:sort_key
code: def sort_dictionary_list(dict_list, sort_key):
      """
      sorts a list of dictionaries based on the value of the sort_key
  
      dict_list - a list of dictionaries
      sort_key - a string that  identifies the key to sort the dictionaries with.
  
      Test sorting a list of dictionaries:
          >>> sort_dictionary_list([{'b' : 1, 'value' : 2}, {'c' : 2, 'value' : 3}, {'a' : 3, 'value' : 1}], 'value')
          [{'a': 3, 'value': 1}, {'b': 1, 'value': 2}, {'c': 2, 'value': 3}]
      """
      if not dict_list or len(dict_list) == 0:
          return dict_list
      dict_list.sort(key=itemgetter(sort_key))
      return dict_list