nodes: 0, module; 1, function_definition; 2, function_name:_validate_path; 3, parameters; 4, block; 5, identifier:path; 6, expression_statement; 7, if_statement; 8, expression_statement; 9, if_statement; 10, return_statement; 11, comment:"""Sorts path values from largest to smallest.
  
      Will warn if path parameter was not already sorted.
      """; 12, comparison_operator:path is None; 13, block; 14, assignment; 15, comparison_operator:new_path[0] != path[0]; 16, block; 17, identifier:new_path; 18, identifier:path; 19, None; 20, return_statement; 21, identifier:new_path; 22, call; 23, subscript; 24, subscript; 25, expression_statement; 26, None; 27, attribute; 28, argument_list; 29, identifier:new_path; 30, integer:0; 31, identifier:path; 32, integer:0; 33, call; 34, identifier:np; 35, identifier:array; 36, call; 37, identifier:print; 38, argument_list; 39, identifier:sorted; 40, argument_list; 41, string:"Warning: Path must be sorted largest to smallest."; 42, call; 43, keyword_argument; 44, identifier:set; 45, argument_list; 46, identifier:reverse; 47, True; 48, identifier:path
code: def _validate_path(path):
      """Sorts path values from largest to smallest.
  
      Will warn if path parameter was not already sorted.
      """
      if path is None:
          return None
  
      new_path = np.array(sorted(set(path), reverse=True))
      if new_path[0] != path[0]:
          print("Warning: Path must be sorted largest to smallest.")
  
      return new_path