class_docstr: Test the GACLAC file handler.
docstr: Get a slice of a dataset.
code: def test_get_dataset_slice(self, get_channel, slc, *mocks):
      """Get a slice of a dataset."""
      from satpy.tests.utils import make_dataid
  
      # Test slicing/stripping
      def slice_patched(data, times):
          if len(data.shape) == 2:
              return data[1:3, :], times[1:3]
          return data[1:3], times[1:3]
  
      ch = np.array(
          [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12], [13, 14, 15]]
      )
      acq = np.array([0, 1, 2, 3, 4])
      slc.side_effect = slice_patched
      get_channel.return_value = ch
      kwargs_list = [
          {
              "strip_invalid_coords": False,
              "start_line": 123,
              "end_line": 456,
          },
          {
              "strip_invalid_coords": True,
              "start_line": None,
              "end_line": None,
          },
          {
              "strip_invalid_coords": True,
              "start_line": 123,
              "end_line": 456,
          },
      ]
      for kwargs in kwargs_list:
          fh = _get_fh_mocked(
              reader=_get_reader_mocked(along_track=len(acq)),
              chn_dict={"1": 0},
              **kwargs,
          )
  
          key = make_dataid(name="1", calibration="reflectance")
          info = {"name": "1", "standard_name": "reflectance"}
          res = fh.get_dataset(key, info)
          np.testing.assert_array_equal(res.data, ch[1:3, :])
          np.testing.assert_array_equal(
              res.coords["acq_time"].data, acq[1:3]
          )
          np.testing.assert_array_equal(
              slc.call_args_list[-1][1]["times"], acq
          )
          np.testing.assert_array_equal(
              slc.call_args_list[-1][1]["data"], ch
          )
  
imports: from datetime import datetime
  from unittest import TestCase, mock
  import dask.array
  import numpy
  import pytest
  import xarray
label_desc: Use image node_id 4 for calling the TestGACLACFile obj's underlying member method code with example usage: obj.test_get_dataset_slice(get_channel, slc) and returns: data,  times, data,  times