code: def _sanitize_and_check(indexes):
      """
      Verify the type of indexes and convert lists to Index.
  
      Cases:
  
      - [list, list, ...]: Return ([list, list, ...], 'list')
      - [list, Index, ...]: Return _sanitize_and_check([Index, Index, ...])
          Lists are sorted and converted to Index.
      - [Index, Index, ...]: Return ([Index, Index, ...], TYPE)
          TYPE = 'special' if at least one special type, 'array' otherwise.
  
      Parameters
      ----------
      indexes : list of Index or list objects
  
      Returns
      -------
      sanitized_indexes : list of Index or list objects
      type : {'list', 'array', 'special'}
      """
      kinds = list({type(index) for index in indexes})
  
      if list in kinds:
          if len(kinds) > 1:
              indexes = [
                  Index(com.try_sort(x))
                  if not isinstance(x, Index)
                  else x
                  for x in indexes
              ]
              kinds.remove(list)
          else:
              return indexes, "list"
  
      if len(kinds) > 1 or Index not in kinds:
          return indexes, "special"
      else:
          return indexes, "array"
  
imports: import textwrap
  import warnings
  from pandas._libs import NaT, lib
  import pandas.core.common
  from pandas.core.indexes.base import Index, _new_Index, ensure_index, ensure_index_from_sequences
  from pandas.core.indexes.base import InvalidIndexError
  from pandas.core.indexes.category import CategoricalIndex
  from pandas.core.indexes.datetimes import DatetimeIndex
  from pandas.core.indexes.interval import IntervalIndex
  from pandas.core.indexes.multi import MultiIndex
  from pandas.core.indexes.numeric import Float64Index, Int64Index, NumericIndex, UInt64Index
  from pandas.core.indexes.period import PeriodIndex
  from pandas.core.indexes.range import RangeIndex
  from pandas.core.indexes.timedeltas import TimedeltaIndex
label_desc: Use image node_id 5 for calling a global function with example usage: _sanitize_and_check(indexes) and returns: indexes,  str, indexes,  str, indexes,  str