class_docstr: Test the AMI L1b reader.
class_docstr_tok: ["Test","the","AMI","L1b","reader","."]
docstr: Test gettting radiance data.
docstr_tok: ["Test","gettting","radiance","data","."]
code: def test_get_dataset(self):
      """Test gettting radiance data."""
      from satpy.tests.utils import make_dataid
  
      key = make_dataid(name="VI006", calibration="radiance")
      res = self.reader.get_dataset(
          key,
          {
              "file_key": "image_pixel_values",
              "standard_name": "toa_outgoing_radiance_per_unit_wavelength",
              "units": "W m-2 um-1 sr-1",
          },
      )
      exp = {
          "calibration": "radiance",
          "modifiers": (),
          "platform_name": "GEO-KOMPSAT-2A",
          "sensor": "ami",
          "units": "W m-2 um-1 sr-1",
      }
      for key, val in exp.items():
          assert val == res.attrs[key]
      self._check_orbital_parameters(res.attrs["orbital_parameters"])
  
imports: import unittest
  from unittest import mock
  import dask.array
  import numpy
  import xarray
  from pytest import approx, raises
label_desc: Use image node_id 4 for calling the TestAMIL1bNetCDF obj's underlying member method code with example usage: obj.test_get_dataset() without return types