class_docstr: Test class for reading compact viirs format.
class_docstr_tok: ["Test","class","for","reading","compact","viirs","format","."]
docstr: Retrieve datasets from a DNB file.
docstr_tok: ["Retrieve","datasets","from","a","DNB","file","."]
code: def test_get_dataset(self):
      """Retrieve datasets from a DNB file."""
      for ds in self._dataset_iterator():
          assert ds.shape == (752, 4064)
          assert ds.dtype == np.float32
          assert ds.compute().shape == (752, 4064)
          assert ds.attrs["rows_per_scan"] == 16
  
file_path: satpy/satpy/tests/reader_tests/test_viirs_compact.py
imports: from contextlib import suppress
  import h5py
  import numpy
  import pytest
  from satpy.tests.reader_tests.utils import fill_h5
label_desc: Use image node_id 3 for calling the TestCompact obj's underlying member method code with example usage: obj.test_get_dataset() without return types