code: def assert_index_value_consistent(
      cls, expected_index_value, real_index
  ):
      if expected_index_value.has_value():
          expected_index = expected_index_value.to_pandas()
          try:
              pd.testing.assert_index_equal(
                  expected_index, cls.adapt_index_value(real_index)
              )
          except AssertionError as e:
              raise AssertionError(
                  f"Index of real value ({real_index}) not equal to ({expected_index})"
              ) from e
  
imports: import fnmatch
  import functools
  import inspect
  import itertools
  import logging
  import os
  import sys
  import time
  import types
  from typing import Dict
  import numpy
  import pandas
  import pytest
  from ..core.operand import OperandStage
  from ..utils import lazy_import
label_desc: Use image node_id 5 for calling the ObjectCheckMixin obj's underlying member method code with example usage: obj.assert_index_value_consistent(cls, expected_index_value, real_index) without return types