code: def check_indexes_all_same(indexes, message="Indexes are not equal."):
      """Check that a list of Index objects are all equal.
  
      Parameters
      ----------
      indexes : iterable[pd.Index]
          Iterable of indexes to check.
  
      Raises
      ------
      ValueError
          If the indexes are not all the same.
      """
      iterator = iter(indexes)
      first = next(iterator)
      for other in iterator:
          same = first == other
          if not same.all():
              bad_loc = np.flatnonzero(~same)[0]
              raise ValueError(
                  "{}\nFirst difference is at index {}: "
                  "{} != {}".format(
                      message, bad_loc, first[bad_loc], other[bad_loc]
                  ),
              )
  
imports: from contextlib import contextmanager
  from copy import deepcopy
  from itertools import product
  import operator
  import warnings
  import numpy
  import pandas
  from distutils.version import StrictVersion
  from trading_calendars.utils.pandas_utils import days_at_time
label_desc: Use image node_id 15 for calling a global function with example usage: check_indexes_all_same(indexes, message) without return types