nodes: 0, module; 1, function_definition; 2, function_name:file_sort; 3, parameters; 4, block; 5, identifier:my_list; 6, expression_statement; 7, function_definition; 8, expression_statement; 9, return_statement; 10, comment:"""
      Sort a list of files in a nice way.
      eg item-10 will be after item-9
      """; 11, function_name:alphanum_key; 12, parameters; 13, block; 14, call; 15, identifier:my_list; 16, identifier:key; 17, expression_statement; 18, return_statement; 19, attribute; 20, argument_list; 21, comment:"""
          Split the key into str/int parts
          """; 22, list_comprehension; 23, identifier:my_list; 24, identifier:sort; 25, keyword_argument; 26, conditional_expression:int(s) if s.isdigit() else s; 27, for_in_clause; 28, identifier:key; 29, identifier:alphanum_key; 30, call; 31, call; 32, identifier:s; 33, identifier:s; 34, call; 35, identifier:int; 36, argument_list; 37, attribute; 38, argument_list; 39, attribute; 40, argument_list; 41, identifier:s; 42, identifier:s; 43, identifier:isdigit; 44, identifier:re; 45, identifier:split; 46, string:"([0-9]+)"; 47, identifier:key
code: def file_sort(my_list):
      """
      Sort a list of files in a nice way.
      eg item-10 will be after item-9
      """
  
      def alphanum_key(key):
          """
          Split the key into str/int parts
          """
          return [int(s) if s.isdigit() else s for s in re.split("([0-9]+)", key)]
  
      my_list.sort(key=alphanum_key)
      return my_list