class_docstr: Tests for ExtensionArray.__getitem__.
code: def test_iloc_series(self, data):
      ser = pd.Series(data)
      result = ser.iloc[:4]
      expected = pd.Series(data[:4])
      tm.assert_series_equal(result, expected)
  
      result = ser.iloc[[0, 1, 2, 3]]
      tm.assert_series_equal(result, expected)
  
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
label_desc: Use image node_id 1 for calling the BaseGetitemTests obj's underlying member method code with example usage: obj.test_iloc_series(data) without return types