class_docstr: Test case for the file reading.
docstr: Check that a good dataset is returned on request.
docstr_tok: ["Check","that","a","good","dataset","is","returned","on","request","."]
code: def test_get_dataset(self, mocked_read):
      """Check that a good dataset is returned on request."""
      m = mock.mock_open()
  
      out_data = np.array(
          [[100.0, 300.0, 500.0], [800.0, 1500.0, 2040.0]]
      )
      mocked_read.return_value = out_data
      with mock.patch(
          "satpy.readers.ahi_l1b_gridded_bin.open", m, create=True
      ):
          res = self.fh.get_dataset(self.key, self.info)
          mocked_read.assert_called()
          # Check output data is correct
          np.testing.assert_allclose(res.values, out_data)
          # Also check a couple of attributes
          assert res.attrs["name"] == self.key["name"]
          assert res.attrs["wavelength"] == self.info["wavelength"]
  
imports: import os
  import shutil
  import tempfile
  import unittest
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  from pyresample.geometry import AreaDefinition
  from satpy.readers.ahi_l1b_gridded_bin import AHI_LUT_NAMES, AHIGriddedFileHandler
label_desc: Use image node_id 4 for calling the TestAHIGriddedFileHandler obj's underlying member method code with example usage: obj.test_get_dataset(mocked_read) without return types