code: def test_wavelength_range():
      """Test the wavelength range object."""
      wr = WavelengthRange(1, 2, 3)
      assert 1.2 == wr
      assert 0.9 != wr
      assert wr == (1, 2, 3)
      assert wr == (1, 2, 3, "µm")
  
      # Check containement
      assert 1.2 in wr
      assert 0.9 not in wr
      assert WavelengthRange(1, 2, 3) in wr
      assert WavelengthRange(1.1, 2.2, 3.3) not in wr
      assert WavelengthRange(1.2, 2, 2.8) in wr
      assert WavelengthRange(10, 20, 30) not in wr
      assert "bla" not in wr
      assert None not in wr
      wr2 = WavelengthRange(1, 2, 3, "µm")
      assert wr2 in wr
      wr2 = WavelengthRange(1, 2, 3, "nm")
      with pytest.raises(NotImplementedError):
          wr2 in wr  # noqa
  
      # Check __str__
      assert str(wr) == "2 µm (1-3 µm)"
      assert str(wr2) == "2 nm (1-3 nm)"
  
      wr = WavelengthRange(10.5, 11.5, 12.5)
      np.testing.assert_almost_equal(wr.distance(11.1), 0.4)
  
imports: import unittest
  from datetime import datetime
  import numpy
  import pytest
  from satpy.dataset.dataid import DataID, DataQuery, ModifierTuple, WavelengthRange, minimal_default_keys_config
  from satpy.readers.pmw_channels_definitions import FrequencyDoubleSideBand, FrequencyQuadrupleSideBand, FrequencyRange
  from satpy.tests.utils import make_cid, make_dataid, make_dsq
label_desc: Use image node_id 23 for calling a global function with example usage: test_wavelength_range() without return types