code: def test_series_set_item_index_reference():
      gs1 = cudf.Series([1], index=[7])
      gs2 = cudf.Series([2], index=gs1.index)
      gs1.loc[11] = 2
  
      ps1 = pd.Series([1], index=[7])
      ps2 = pd.Series([2], index=ps1.index)
      ps1.loc[11] = 2
  
      assert_eq(ps1, gs1)
      assert_eq(ps2, gs2)
  
imports: import numpy
  import pandas
  import pytest
  import cudf
  from cudf.core._compat import PANDAS_GE_150
  from cudf.testing._utils import assert_eq, assert_exceptions_equal
label_desc: Use image node_id 28 for calling a global function with example usage: test_series_set_item_index_reference() without return types