code: def test_logical_compat(self, simple_index):
      idx = simple_index
      assert idx.all() == idx.values.all()
      assert idx.any() == idx.values.any()
  
imports: import numpy
  import pytest
  from pandas.core.dtypes.common import ensure_platform_int
  import pandas
  from pandas import Index, RangeIndex
  import pandas._testing
label_desc: Use image node_id 23 for calling the TestRangeIndex obj's underlying member method code with example usage: obj.test_logical_compat(simple_index) without return types