class_docstr: Test the file handler.
class_docstr_tok: ["Test","the","file","handler","."]
docstr: Test whether counts returned by get_dataset() are correct.
code: def test_get_dataset_counts(self):
      """Test whether counts returned by get_dataset() are correct."""
      from satpy.readers.goes_imager_nc import ALTITUDE, UNKNOWN_SECTOR
  
      self.reader.meta.update(
          {
              "lon0": -75.0,
              "lat0": 0.0,
              "sector": UNKNOWN_SECTOR,
              "nadir_row": 1,
              "nadir_col": 2,
              "area_def_uni": "some_area",
          }
      )
      attrs_exp = {
          "orbital_parameters": {
              "projection_longitude": -75.0,
              "projection_latitude": 0.0,
              "projection_altitude": ALTITUDE,
              "yaw_flip": True,
          },
          "platform_name": "GOES-15",
          "sensor": "goes_imager",
          "sector": UNKNOWN_SECTOR,
          "nadir_row": 1,
          "nadir_col": 2,
          "area_def_uniform_sampling": "some_area",
      }
  
      for ch in self.channels:
          counts = self.reader.get_dataset(
              key=make_dataid(name=ch, calibration="counts"), info={}
          )
          # ... this only compares the valid (unmasked) elements
          assert np.all(
              self.counts / 32.0 == counts.to_masked_array()
          ), f"get_dataset() returns invalid counts for channel {ch}"
  
          # Check attributes
          assert counts.attrs == attrs_exp
  
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 3 for calling the GOESNCFileHandlerTest obj's underlying member method code with example usage: obj.test_get_dataset_counts() without return types