class_docstr: Test the file handler.
class_docstr_tok: ["Test","the","file","handler","."]
docstr: Test whether data and coordinates are masked consistently.
code: def test_get_dataset_masks(self):
      """Test whether data and coordinates are masked consistently."""
      # Requires that no element has been masked due to invalid
      # radiance/reflectance/BT (see setUp()).
      lon = self.reader.get_dataset(
          key=make_dataid(name="longitude"), info={}
      )
      lon_mask = lon.to_masked_array().mask
      for ch in self.channels:
          for calib in (
              "counts",
              "radiance",
              "reflectance",
              "brightness_temperature",
          ):
              try:
                  data = self.reader.get_dataset(
                      key=make_dataid(name=ch, calibration=calib),
                      info={},
                  )
              except ValueError:
                  continue
              data_mask = data.to_masked_array().mask
              assert np.all(
                  data_mask == lon_mask
              ), f"get_dataset() returns inconsistently masked {calib} in channel {ch}"
  
imports: import datetime
  import unittest
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
  from satpy.readers.goes_imager_nc import is_vis_channel
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 4 for calling the GOESNCFileHandlerTest obj's underlying member method code with example usage: obj.test_get_dataset_masks() without return types