code: def test_filter_index_value():
      pd_index = pd.RangeIndex(10)
      index_value = parse_index(pd_index)
  
      min_max = (0, True, 9, True)
      assert (
          filter_index_value(index_value, min_max).to_pandas().tolist()
          == pd_index[(pd_index >= 0) & (pd_index <= 9)].tolist()
      )
  
      min_max = (0, False, 9, False)
      assert (
          filter_index_value(index_value, min_max).to_pandas().tolist()
          == pd_index[(pd_index > 0) & (pd_index < 9)].tolist()
      )
  
      pd_index = pd.RangeIndex(1, 11, 3)
      index_value = parse_index(pd_index)
  
      min_max = (2, True, 10, True)
      assert (
          filter_index_value(index_value, min_max).to_pandas().tolist()
          == pd_index[(pd_index >= 2) & (pd_index <= 10)].tolist()
      )
  
      min_max = (2, False, 10, False)
      assert (
          filter_index_value(index_value, min_max).to_pandas().tolist()
          == pd_index[(pd_index > 2) & (pd_index < 10)].tolist()
      )
  
      pd_index = pd.RangeIndex(9, -1, -1)
      index_value = parse_index(pd_index)
  
      min_max = (0, True, 9, True)
      assert (
          filter_index_value(index_value, min_max).to_pandas().tolist()
          == pd_index[(pd_index >= 0) & (pd_index <= 9)].tolist()
      )
  
      min_max = (0, False, 9, False)
      assert (
          filter_index_value(index_value, min_max).to_pandas().tolist()
          == pd_index[(pd_index > 0) & (pd_index < 9)].tolist()
      )
  
      pd_index = pd.RangeIndex(10, 0, -3)
      index_value = parse_index(pd_index, store_data=False)
  
      min_max = (2, True, 10, True)
      assert (
          filter_index_value(index_value, min_max).to_pandas().tolist()
          == pd_index[(pd_index >= 2) & (pd_index <= 10)].tolist()
      )
  
      min_max = (2, False, 10, False)
      assert (
          filter_index_value(index_value, min_max).to_pandas().tolist()
          == pd_index[(pd_index > 2) & (pd_index < 10)].tolist()
      )
  
      pd_index = pd.Index([0, 3, 8], dtype=np.int64)
      index_value = parse_index(pd_index, store_data=True)
  
      min_max = (2, True, 8, False)
      assert (
          filter_index_value(index_value, min_max, store_data=True)
          .to_pandas()
          .tolist()
          == pd_index[(pd_index >= 2) & (pd_index < 8)].tolist()
      )
  
      index_value = parse_index(pd_index)
  
      min_max = (2, True, 8, False)
      filtered = filter_index_value(index_value, min_max)
      assert len(filtered.to_pandas().tolist()) == 0
      assert isinstance(filtered.value, IndexValue.Int64Index)
  
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 6 for calling a global function with example usage: test_filter_index_value() without return types