code: def test_get_polarized_dataset_reflectance(
      sgli_pol_file, polarization
  ):
      """Test getting polarized reflectances."""
      handler = HDF5SGLI(sgli_pol_file, {"resolution": "L"}, {})
      did = dict(
          name="P1",
          resolution=1000,
          polarization=polarization,
          calibration="reflectance",
      )
      res = handler.get_dataset(
          did,
          {
              "file_key": "Image_data/Lt_P1_{polarization}",
              "units": "%",
              "standard_name": "toa_bidirectional_reflectance",
          },
      )
      assert res.dtype == np.float32
      expected = (
          FULL_KM_ARRAY[0, :] * np.float32(5e-5)
          + np.float32(polarization)
      ) * 100
      np.testing.assert_allclose(res[0, :], expected)
      assert res.attrs["units"] == "%"
      assert (
          res.attrs["standard_name"] == "toa_bidirectional_reflectance"
      )
  
imports: import sys
  from datetime import datetime, timedelta
  import dask
  import h5py
  import numpy
  import pytest
  from satpy.readers.sgli_l1b import HDF5SGLI
label_desc: Use image node_id 21 for calling a global function with example usage: test_get_polarized_dataset_reflectance(sgli_pol_file, polarization) without return types