class_docstr: Test the MWSL1BFile reader.
docstr: Test get global attributes.
docstr_tok: ["Test","get","global","attributes","."]
code: def test_get_global_attributes(self, reader):
      """Test get global attributes."""
      attributes = reader._get_global_attributes()
      assert attributes == {
          "filename": reader.filename,
          "start_time": datetime(2000, 1, 2, 3, 4, 5),
          "end_time": datetime(2000, 1, 2, 4, 5, 6),
          "spacecraft_name": "Metop-SG-A1",
          "sensor": "MWS",
          "filename_start_time": datetime(2000, 1, 1, 1, 0),
          "filename_end_time": datetime(2000, 1, 1, 2, 0),
          "platform_name": "Metop-SG-A1",
          "quality_group": {
              "duration_of_product": np.array(5944.0, dtype=np.float32),
              "overall_quality_flag": 0,
          },
      }
  
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 18 for calling the TestMwsL1bNCFileHandler obj's underlying member method code with example usage: obj.test_get_global_attributes(reader) without return types