code: def test_get_channel_index_from_name_throw_exception():
      """Test that an excpetion is thrown when getting the MWS channel index from an unsupported name."""
      with pytest.raises(
          AttributeError, match="Channel name 'channel 1' not supported"
      ):
          _ = get_channel_index_from_name("channel 1")
  
imports: import logging
  from datetime import datetime
  from unittest.mock import patch
  import numpy
  import pytest
  import xarray
  from netCDF4 import Dataset
  from satpy.readers.mws_l1b import MWSL1BFile, get_channel_index_from_name
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_channel_index_from_name_throw_exception() without return types