code: def test_getitem_with_duplicates_indices(
      result_1, duplicate_item, expected_1
  ):
      # GH 17610
      result_1 = Series(result_1)
      duplicate_item = Series(duplicate_item)
      result = result_1._append(duplicate_item)
      expected = expected_1._append(duplicate_item)
      tm.assert_series_equal(result[1], expected)
      assert result[2] == result_1[2]
  
imports: from datetime import timedelta
  import re
  import numpy
  import pytest
  from pandas.errors import IndexingError
  from pandas import NA, DataFrame, Index, IndexSlice, MultiIndex, NaT, Series, Timedelta, Timestamp, concat, date_range, isna, period_range, timedelta_range
  import pandas._testing
label_desc: Use image node_id 7 for calling a global function with example usage: test_getitem_with_duplicates_indices(result_1, duplicate_item, expected_1) without return types