class_docstr: Test the HRITJMAFileHandler.
class_docstr_tok: ["Test","the","HRITJMAFileHandler","."]
docstr: Test getting a dataset.
docstr_tok: ["Test","getting","a","dataset","."]
code: def test_get_dataset(self, base_get_dataset):
      """Test getting a dataset."""
      from satpy.readers.hrit_jma import HIMAWARI8
  
      mda = self._get_mda(
          loff=1375.0,
          coff=1375.0,
          nlines=275,
          ncols=1375,
          segno=1,
          numseg=10,
      )
      reader = self._get_reader(mda=mda)
      key = make_dataid(name="VIS", calibration="reflectance")
  
      base_get_dataset.return_value = DataArray(
          da.ones((275, 1375), chunks=1024), dims=("y", "x")
      )
  
      # Check attributes
      res = reader.get_dataset(key, {"units": "%", "sensor": "ahi"})
      assert res.attrs["units"] == "%"
      assert res.attrs["sensor"] == "ahi"
      assert res.attrs["platform_name"] == HIMAWARI8
      assert res.attrs["orbital_parameters"] == {
          "projection_longitude": 140.7,
          "projection_latitude": 0.0,
          "projection_altitude": 35785831.0,
      }
  
      # Check if acquisition time is a coordinate
      assert "acq_time" in res.coords
  
      # Check called methods
      with mock.patch.object(reader, "_mask_space") as mask_space:
          with mock.patch.object(reader, "calibrate") as calibrate:
              reader.get_dataset(key, {"units": "%", "sensor": "ahi"})
              mask_space.assert_called()
              calibrate.assert_called()
  
      with mock.patch("logging.Logger.error") as log_mock:
          reader.get_dataset(key, {"units": "%", "sensor": "jami"})
          log_mock.assert_called()
  
imports: import unittest
  from unittest import mock
  import dask.array
  import numpy
  from xarray import DataArray
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 9 for calling the TestHRITJMAFileHandler obj's underlying member method code with example usage: obj.test_get_dataset(base_get_dataset) without return types