class_docstr: Writer class of fake mws level-1b data.
docstr: Write fake data to file.
docstr_tok: ["Write","fake","data","to","file","."]
code: def write(self):
      """Write fake data to file."""
      with Dataset(self.file_path, "w") as dataset:
          self._write_attributes(dataset)
          self._write_status_group(dataset)
          self._write_quality_group(dataset)
          data_group = dataset.createGroup("data")
          self._create_scan_dimensions(data_group)
          self._write_navigation_data_group(data_group)
          self._write_calibration_data_group(data_group)
          self._write_measurement_data_group(data_group)
  
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 2 for calling the MWSL1BFakeFileWriter obj's underlying member method code with example usage: obj.write() without return types