def METHOD_NAME(self, td):
    td.pop(1)
    assert 1 not in td
    assert td.pop_accessed_keys() == {1}
    td[1] = 7
    td[5] = 8
    assert 1 in td
    assert 5 in td
    assert td.pop_accessed_keys() == {1, 5}
    td.pop(5)
    assert 5 not in td
    assert td.pop_accessed_write_items() == [(5, TrackingDict.DELETED)]
    with pytest.raises(KeyError):
        td.pop(5)
    assert td.pop(5, 8) == 8
    assert 5 not in td
    assert not td.pop_accessed_keys()
    assert td.pop(5, 8) == 8
    assert 5 not in td
    assert not td.pop_accessed_write_items()