class_docstr: Test various meris_nc_sen3 filehandlers.
class_docstr_tok: ["Test","various","meris_nc_sen3","filehandlers","."]
docstr: Test reading datasets.
docstr_tok: ["Test","reading","datasets","."]
code: def test_get_dataset(self, mocked_dataset):
      """Test reading datasets."""
      import numpy as np
      import xarray as xr
  
      from satpy.readers.meris_nc_sen3 import NCMERIS2
      from satpy.tests.utils import make_dataid
  
      mocked_dataset.return_value = xr.Dataset(
          {
              "mask": (
                  ["rows", "columns"],
                  np.array([1 << x for x in range(30)]).reshape(5, 6),
              )
          },
          coords={"rows": np.arange(5), "columns": np.arange(6)},
      )
      ds_id = make_dataid(name="mask")
      filename_info = {
          "mission_id": "ENV",
          "dataset_name": "mask",
          "start_time": 0,
          "end_time": 0,
      }
      test = NCMERIS2("somedir/somefile.nc", filename_info, "c")
      res = test.get_dataset(ds_id, {"nc_key": "mask"})
      assert res.dtype == np.dtype("bool")
  
file_path: satpy/satpy/tests/reader_tests/test_meris_nc.py
imports: import unittest
  import unittest.mock
label_desc: Use image node_id 3 for calling the TestMERISReader obj's underlying member method code with example usage: obj.test_get_dataset(mocked_dataset) without return types