class_docstr: Test the scene class.
class_docstr_tok: ["Test","the","scene","class","."]
docstr: Test deleting an item.
docstr_tok: ["Test","deleting","an","item","."]
code: def test_delitem(self):
      """Test deleting an item."""
      scene = Scene()
      scene["1"] = xr.DataArray(
          np.arange(5),
          attrs={
              "wavelength": (0.1, 0.2, 0.3),
              "_satpy_id_keys": default_id_keys_config,
          },
      )
      scene["2"] = xr.DataArray(
          np.arange(5),
          attrs={
              "wavelength": (0.4, 0.5, 0.6),
              "_satpy_id_keys": default_id_keys_config,
          },
      )
      scene["3"] = xr.DataArray(
          np.arange(5),
          attrs={
              "wavelength": (0.7, 0.8, 0.9),
              "_satpy_id_keys": default_id_keys_config,
          },
      )
      del scene["1"]
      del scene["3"]
      del scene[0.45]
      assert not scene._wishlist
      assert not list(scene._datasets.keys())
      pytest.raises(KeyError, scene.__delitem__, 0.2)
  
imports: import math
  import numpy
  import pytest
  import xarray
  from dask import array
  from satpy import Scene
  from satpy.dataset.dataid import default_id_keys_config
  from satpy.tests.utils import FAKE_FILEHANDLER_END, FAKE_FILEHANDLER_START, make_cid, make_dataid
label_desc: Use image node_id 11 for calling the TestDataAccessMethods obj's underlying member method code with example usage: obj.test_delitem() without return types