class_docstr: Test the MWSL1BFile reader.
docstr: Test manage attributes.
docstr_tok: ["Test","manage","attributes","."]
code: def test_manage_attributes(self, mock, reader):
      """Test manage attributes."""
      variable = xr.DataArray(
          np.ones(N_SCANS),
          attrs={"season": "summer"},
      )
      dataset_info = {"name": "1", "units": "K"}
      variable = reader._manage_attributes(variable, dataset_info)
      assert variable.attrs == {
          "season": "summer",
          "units": "K",
          "name": "1",
          "mocked_global_attributes": True,
      }
  
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 19 for calling the TestMwsL1bNCFileHandler obj's underlying member method code with example usage: obj.test_manage_attributes(mock, reader) without return types