class_docstr: Test the scene class.
class_docstr_tok: ["Test","the","scene","class","."]
docstr: Test contains.
docstr_tok: ["Test","contains","."]
code: def test_contains(self):
      """Test contains."""
      scene = Scene()
      scene["1"] = xr.DataArray(
          np.arange(5),
          attrs={
              "wavelength": (0.1, 0.2, 0.3),
              "_satpy_id_keys": default_id_keys_config,
          },
      )
      assert "1" in scene
      assert 0.15 in scene
      assert "2" not in scene
      assert 0.31 not in scene
  
      scene = Scene()
      scene["blueberry"] = xr.DataArray(np.arange(5))
      scene["blackberry"] = xr.DataArray(np.arange(5))
      scene["strawberry"] = xr.DataArray(np.arange(5))
      scene["raspberry"] = xr.DataArray(np.arange(5))
      #  deepcode ignore replace~keys~list~compare: This is on purpose
      assert make_cid(name="blueberry") in scene.keys()
      assert make_cid(name="blueberry") in scene
      assert "blueberry" in scene
      assert "blueberry" not in scene.keys()
  
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 10 for calling the TestDataAccessMethods obj's underlying member method code with example usage: obj.test_contains() without return types