nodes: 0, module; 1, function_definition; 2, function_name:naturalsortkey; 3, parameters; 4, block; 5, identifier:s; 6, expression_statement; 7, return_statement; 8, comment:"""Natural sort order"""; 9, list_comprehension; 10, conditional_expression:int(part) if part.isdigit() else part; 11, for_in_clause; 12, call; 13, call; 14, identifier:part; 15, identifier:part; 16, call; 17, identifier:int; 18, argument_list; 19, attribute; 20, argument_list; 21, attribute; 22, argument_list; 23, identifier:part; 24, identifier:part; 25, identifier:isdigit; 26, identifier:re; 27, identifier:split; 28, string; 29, identifier:s; 30, string_content:([0-9]+)
code: def naturalsortkey(s):
      """Natural sort order"""
      return [int(part) if part.isdigit() else part
              for part in re.split('([0-9]+)', s)]