code: def test_shares_memory_interval():
      obj = pd.interval_range(1, 5)
  
      assert tm.shares_memory(obj, obj)
      assert tm.shares_memory(obj, obj._data)
      assert tm.shares_memory(obj, obj[::-1])
      assert tm.shares_memory(obj, obj[:2])
  
      assert not tm.shares_memory(obj, obj._data.copy())
  
imports: import pandas.util._test_decorators
  import pandas
  import pandas._testing
label_desc: Use image node_id 1 for calling a global function with example usage: test_shares_memory_interval() without return types