def METHOD_NAME(self, index):
    """Test that __setitem__ raises an IndexError when given an index
    that is out of range of the list."""
    ds = DatasetList([0])
    with pytest.raises(IndexError):
        ds[index] = 1