class_docstr: Test the FciL2NCFileHandler reader.
class_docstr_tok: ["Test","the","FciL2NCFileHandler","reader","."]
docstr: Check the correct execution of the get_dataset function with a valid file_key & layer.
docstr_tok: ["Check","the","correct","execution","of","the","get_dataset","function","with","a","valid","file_key","&","layer","."]
code: def test_dataset_with_layer(self):
      """Check the correct execution of the get_dataset function with a valid file_key & layer."""
      dataset = self.fh.get_dataset(
          make_dataid(name="test_two_layers", resolution=2000),
          {
              "name": "test_two_layers",
              "file_key": "test_two_layers",
              "layer": 1,
              "fill_value": -999,
              "file_type": "test_file_type",
          },
      )
      np.testing.assert_allclose(dataset.values, 2 * np.ones((100, 10)))
      assert dataset.attrs["units"] is None
      assert dataset.attrs["spacecraft_name"] == "test_platform"
  
imports: import os
  import unittest
  import uuid
  from contextlib import suppress
  from unittest import mock
  import numpy
  import pytest
  from netCDF4 import Dataset
  from pyresample import geometry
  from satpy.readers.fci_l2_nc import FciL2NCAMVFileHandler, FciL2NCFileHandler, FciL2NCSegmentFileHandler
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 6 for calling the TestFciL2NCFileHandler obj's underlying member method code with example usage: obj.test_dataset_with_layer() without return types