class_docstr: Test case for CF writer.
docstr: Test specification of unlimited dimensions.
docstr_tok: ["Test","specification","of","unlimited","dimensions","."]
code: def test_unlimited_dims_kwarg(self):
      """Test specification of unlimited dimensions."""
      scn = Scene()
      start_time = datetime(2018, 5, 30, 10, 0)
      end_time = datetime(2018, 5, 30, 10, 15)
      test_array = np.array([[1, 2], [3, 4]])
      scn["test-array"] = xr.DataArray(
          test_array,
          dims=["x", "y"],
          coords={"time": np.datetime64("2018-05-30T10:05:00", "ns")},
          attrs=dict(start_time=start_time, end_time=end_time),
      )
      with TempFile() as filename:
          scn.save_datasets(
              filename=filename,
              writer="cf",
              unlimited_dims=["time"],
              encoding={"time": {"units": "seconds since 2018-01-01"}},
          )
          with xr.open_dataset(filename) as f:
              assert set(f.encoding["unlimited_dims"]) == {"time"}
  
imports: import os
  import tempfile
  import warnings
  from datetime import datetime
  import numpy
  import pytest
  import xarray
  from packaging.version import Version
  from satpy import Scene
  from satpy.tests.utils import make_dsq
  from satpy.writers.cf_writer import _get_backend_versions
label_desc: Use image node_id 15 for calling the TestCFWriter obj's underlying member method code with example usage: obj.test_unlimited_dims_kwarg() without return types