code: def test_delete_base(idx):
      expected = idx[1:]
      result = idx.delete(0)
      assert result.equals(expected)
      assert result.name == expected.name
  
      expected = idx[:-1]
      result = idx.delete(-1)
      assert result.equals(expected)
      assert result.name == expected.name
  
      msg = "index 6 is out of bounds for axis 0 with size 6"
      with pytest.raises(IndexError, match=msg):
          idx.delete(len(idx))
  
file_path: pandas/pandas/tests/indexes/multi/test_reshape.py
imports: from datetime import datetime
  import numpy
  import pytest
  import pytz
  import pandas
  from pandas import Index, MultiIndex
  import pandas._testing
label_desc: Use image node_id 10 for calling a global function with example usage: test_delete_base(idx) without return types