code: def wrap_sort_functions(func):
      """A convenience decorator for wrapping sort functions
  
      Parameters
      ----------
      func : a numpy-compatible array creation function to be wrapped for parameter keyword change.
  
      Returns
      -------
      Function
          A function wrapped with changed keywords.
      """
  
      @functools.wraps(func)
      def _wrap_sort_func(*args, **kwargs):
          if len(kwargs) != 0:
              kind = kwargs.pop("kind", None)
              order = kwargs.pop("order", None)
              if kind is not None:
                  kwargs["stable"] = kind == "stable"
              if order is not None:
                  raise NotImplementedError("order not supported here")
          return func(*args, **kwargs)
  
      return _wrap_sort_func
  
imports: import ctypes
  import functools
  import inspect
  import threading
  import tempfile
  import platform
  from contextlib import contextmanager
  from struct import calcsize
  from .base import _LIB, check_call, c_str, py_str, numeric_types, integer_types, long, _MAX_VALUE_64_BIT_UNSIGNED_, _MAX_VALUE_64_BIT_SIGNED_, _MAX_VALUE_FLOAT32_REPRESENT_
label_desc: Use image node_id 18 for calling a global function with example usage: wrap_sort_functions(func) and returns: _wrap_sort_func, func