code: def test_delitem(self, corpus):
      del corpus[-1]
      del corpus[-1:]
      with pytest.raises(TypeError):
          del corpus["foo"]
  
imports: import collections
  import itertools
  import numpy
  import pytest
  from spacy.tokens import Doc
  from textacy import Corpus
  from textacy import load_spacy_lang
label_desc: Use image node_id 5 for calling the TestCorpusDunder obj's underlying member method code with example usage: obj.test_delitem(corpus) without return types