code: def _scalar_type_key(typ):
      """A ``key`` function for `sorted`."""
      dt = dtype(typ)
      return (dt.kind.lower(), dt.itemsize)
  
imports: import numbers
  import warnings
  from .None import multiarray
  from .multiarray import ndarray, array, dtype, datetime_data, datetime_as_string, busday_offset, busday_count, is_busday, busdaycalendar
  from .._utils import set_module
  from ._string_helpers import english_lower, english_upper, english_capitalize, LOWER_TABLE, UPPER_TABLE
  from ._type_aliases import sctypeDict, allTypes, sctypes
  from ._dtype import _kind_name
  from builtins import bool, int, float, complex, object, str, bytes
label_desc: Use image node_id 10 for calling a global function with example usage: _scalar_type_key(typ) and returns: dt,  dt