code: def test_parse_index():
      index = pd.Index([], dtype=np.int64)
      parsed_index = parse_index(index)
      assert isinstance(parsed_index.value, IndexValue.Int64Index)
      pd.testing.assert_index_equal(index, parsed_index.to_pandas())
  
      index = pd.Index([1, 2], dtype=np.int64)
      parsed_index = parse_index(index)  # not parse data
      assert isinstance(parsed_index.value, IndexValue.Int64Index)
      with pytest.raises(AssertionError):
          pd.testing.assert_index_equal(index, parsed_index.to_pandas())
  
      parsed_index = parse_index(index, store_data=True)  # parse data
      assert isinstance(parsed_index.value, IndexValue.Int64Index)
      pd.testing.assert_index_equal(index, parsed_index.to_pandas())
  
      index = pd.RangeIndex(0, 10, 3)
      parsed_index = parse_index(index)
      assert isinstance(parsed_index.value, IndexValue.RangeIndex)
      pd.testing.assert_index_equal(index, parsed_index.to_pandas())
  
      index = pd.MultiIndex.from_arrays(
          [[0, 1], ["a", "b"], ["X", "Y"]]
      )
      parsed_index = parse_index(index)  # not parse data
      assert isinstance(parsed_index.value, IndexValue.MultiIndex)
      with pytest.raises(AssertionError):
          pd.testing.assert_index_equal(index, parsed_index.to_pandas())
  
      parsed_index = parse_index(index, store_data=True)  # parse data
      assert isinstance(parsed_index.value, IndexValue.MultiIndex)
      pd.testing.assert_index_equal(index, parsed_index.to_pandas())
  
imports: import operator
  from collections import OrderedDict
  from numbers import Integral
  from typing import List, Dict
  import numpy
  import pandas
  import pytest
  from ...config import option_context
  from ...core import tile
  from ...utils import Timer
  from ..core import IndexValue
  from ..initializer import DataFrame, Series, Index
  from ..utils import decide_dataframe_chunk_sizes, decide_series_chunk_size, split_monotonic_index_min_max, build_split_idx_to_origin_idx, parse_index, filter_index_value, infer_dtypes, infer_index_value, validate_axis, fetch_corner_data, make_dtypes, build_concatenated_rows_frame, merge_index_value, auto_merge_chunks, whether_to_clean_up
label_desc: Use image node_id 3 for calling a global function with example usage: test_parse_index() without return types