code: def test_index_from_series_copy(using_copy_on_write):
      ser = Series([1, 2])
      idx = Index(ser, copy=True)  # noqa: F841
      arr = get_array(ser)
      ser.iloc[0] = 100
      assert np.shares_memory(get_array(ser), arr)
  
file_path: pandas/pandas/tests/copy_view/index/test_index.py
imports: import numpy
  import pytest
  from pandas import DataFrame, Index, Series
  import pandas._testing
  from pandas.tests.copy_view.util import get_array
label_desc: Use image node_id 8 for calling a global function with example usage: test_index_from_series_copy(using_copy_on_write) without return types