class_docstr: Test case for CF reader.
class_docstr_tok: ["Test","case","for","CF","reader","."]
docstr: Check that get_dataset returns valid dataset when keys matches.
docstr_tok: ["Check","that","get_dataset","returns","valid","dataset","when","keys","matches","."]
code: def test_dataid_attrs_equal_matching_dataset(
      self, cf_scene, nc_filename
  ):
      """Check that get_dataset returns valid dataset when keys matches."""
      from satpy.dataset.dataid import DataID, default_id_keys_config
  
      _create_test_netcdf(nc_filename, resolution=742)
      reader = SatpyCFFileHandler(nc_filename, {}, {"filetype": "info"})
      ds_id = DataID(
          default_id_keys_config,
          name="solar_zenith_angle",
          resolution=742,
          modifiers=(),
      )
      res = reader.get_dataset(ds_id, {})
      assert res.attrs["resolution"] == 742
  
imports: import warnings
  from datetime import datetime
  import numpy
  import pytest
  import xarray
  from pyresample import AreaDefinition, SwathDefinition
  from satpy import Scene
  from satpy.dataset.dataid import WavelengthRange
  from satpy.readers.satpy_cf_nc import SatpyCFFileHandler
label_desc: Use image node_id 12 for calling the TestCFReader obj's underlying member method code with example usage: obj.test_dataid_attrs_equal_matching_dataset(cf_scene, nc_filename) without return types