code: def check_consistent_index_type(a, b):
      """Check that two indices have consistent types.
  
      Parameters
      ----------
      a : pd.Index
          Index being checked for consistency
      b : pd.Index
          Index being checked for consistency
  
      Raises
      ------
      TypeError
          If index types are inconsistent
      """
      msg = (
          "Found series with inconsistent index types, please make sure all "
          "series have the same index type."
      )
  
      if is_integer_index(a):
          if not is_integer_index(b):
              raise TypeError(msg)
  
      else:
          # check types, note that isinstance() does not work here because index
          # types inherit from each other, hence we check for type equality
          if not type(a) is type(b):  # noqa
              raise TypeError(msg)
  
file_path: sktime/sktime/utils/validation/series.py
imports: from typing import Union
  import numpy
  import pandas
label_desc: Use image node_id 10 for calling a global function with example usage: check_consistent_index_type(a, b) without return types