code: def natural_sort(list, key=lambda s: s):
      """
      Sort the list into natural alphanumeric order.
      """
  
      def get_alphanum_key_func(key):
          convert = lambda text: int(text) if text.isdigit() else text
          return lambda s: [
              convert(c) for c in re.split("([0-9]+)", key(s))
          ]
  
      sort_key = get_alphanum_key_func(key)
      list.sort(key=sort_key)
  
imports: import hashlib
  import os
  import re
  import sys
  from math import sqrt
  import cv2
  import numpy
  from PyQt5.QtCore import QRegExp, QT_VERSION_STR
  from PyQt5.QtGui import QIcon, QRegExpValidator, QColor
  from PyQt5.QtWidgets import QPushButton, QAction, QMenu
  from libs.ustr import ustr
label_desc: Use image node_id 10 for calling a global function with example usage: natural_sort(list, key) and returns: function