class_docstr: Tests for ExtensionArray.__getitem__.
code: def test_getitem_boolean_array_mask(self, data):
      mask = pd.array(
          np.zeros(data.shape, dtype="bool"), dtype="boolean"
      )
      result = data[mask]
      assert len(result) == 0
      assert isinstance(result, type(data))
  
      result = pd.Series(data)[mask]
      assert len(result) == 0
      assert result.dtype == data.dtype
  
      mask[:5] = True
      expected = data.take([0, 1, 2, 3, 4])
      result = data[mask]
      tm.assert_extension_array_equal(result, expected)
  
      expected = pd.Series(expected)
      result = pd.Series(data)[mask]
      tm.assert_series_equal(result, expected)
  
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
label_desc: Use image node_id 13 for calling the BaseGetitemTests obj's underlying member method code with example usage: obj.test_getitem_boolean_array_mask(data) without return types