class_docstr: Tests for ExtensionArray.__getitem__.
code: def test_getitem_mask_raises(self, data):
      mask = np.array([True, False])
      msg = f"Boolean index has wrong length: 2 instead of {len(data)}"
      with pytest.raises(IndexError, match=msg):
          data[mask]
  
      mask = pd.array(mask, dtype="boolean")
      with pytest.raises(IndexError, match=msg):
          data[mask]
  
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
label_desc: Use image node_id 12 for calling the BaseGetitemTests obj's underlying member method code with example usage: obj.test_getitem_mask_raises(data) without return types