code: def _check_index_no_total(X):
      """Check the index of X and return boolean."""
      # check the elements of the index for "__total"
      chk_list = []
      for i in range(0, X.index.nlevels - 1, 1):
          chk_list.append(
              X.index.get_level_values(level=i).isin(["__total"]).sum()
          )
      tot_chk = sum(chk_list) == 0
  
      return tot_chk
  
file_path: sktime/sktime/transformations/hierarchical/aggregate.py
imports: import numpy
  import pandas
  from sktime.transformations.base import BaseTransformer
  from sktime.utils.warnings import warn
label_desc: Use image node_id 1 for calling a global function with example usage: _check_index_no_total(X) and returns: tot_chk