class_docstr: Test the Ocean Color reader.
class_docstr_tok: ["Test","the","Ocean","Color","reader","."]
docstr: Test dataset loading.
docstr_tok: ["Test","dataset","loading","."]
code: def test_get_dataset_1d_kprods(self, fake_dataset, fake_file_dict):
      """Test dataset loading."""
      reader = self._create_reader_for_resolutions(
          [fake_file_dict["k490_1d"]]
      )
      # Check how many datasets are available. This file contains all of them.
      assert len(list(reader.available_dataset_names)) == 25
      res = reader.load(ds_list_kd)
      assert len(res) == len(ds_list_kd)
      for curds in ds_list_kd:
          np.testing.assert_allclose(
              res[curds].values, fake_dataset[ds_dict[curds]].values
          )
          assert res[curds].attrs["sensor"] == "merged"
          assert res[curds].attrs["composite_period"] == "daily"
  
imports: import os
  from datetime import datetime
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
label_desc: Use image node_id 8 for calling the TestOCCCIReader obj's underlying member method code with example usage: obj.test_get_dataset_1d_kprods(fake_dataset, fake_file_dict) without return types