code: def test_getitem_boolean_ea_indexer():
      # GH#45806
      ser = pd.Series([True, False, pd.NA], dtype="boolean")
      result = ser.index[ser]
      expected = Index([0])
      tm.assert_index_equal(result, expected)
  
file_path: pandas/pandas/tests/indexes/base_class/test_indexing.py
imports: import numpy
  import pytest
  from pandas._libs import index
  import pandas
  from pandas import Index, NaT
  import pandas._testing
label_desc: Use image node_id 1 for calling a global function with example usage: test_getitem_boolean_ea_indexer() without return types