code: def test_get_channel_index_from_name(name, index):
      """Test getting the MWS channel index from the channel name."""
      ch_idx = get_channel_index_from_name(name)
      assert ch_idx == index
  
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 3 for calling a global function with example usage: test_get_channel_index_from_name(name, index) without return types