class_docstr: Test update of dataset encodings.
docstr: Test data with no time dimension.
docstr_tok: ["Test","data","with","no","time","dimension","."]
code: def test_without_time(self, fake_ds):
      """Test data with no time dimension."""
      from satpy.cf.encoding import update_encoding
  
      # Without time dimension
      ds = fake_ds.chunk(2)
      kwargs = {
          "encoding": {"bar": {"chunksizes": (1, 1)}},
          "other": "kwargs",
      }
      enc, other_kwargs = update_encoding(ds, kwargs)
      expected_dict = {
          "y": {"_FillValue": None},
          "x": {"_FillValue": None},
          "lon": {"chunksizes": (2, 2)},
          "foo": {"chunksizes": (2, 2)},
          "bar": {"chunksizes": (1, 1)},
      }
      assert enc == expected_dict
      assert other_kwargs == {"other": "kwargs"}
  
      # Chunksize may not exceed shape
      ds = fake_ds.chunk(8)
      kwargs = {"encoding": {}, "other": "kwargs"}
      enc, other_kwargs = update_encoding(ds, kwargs)
      expected_dict = {
          "y": {"_FillValue": None},
          "x": {"_FillValue": None},
          "lon": {"chunksizes": (2, 2)},
          "foo": {"chunksizes": (2, 2)},
          "bar": {"chunksizes": (2, 2)},
      }
      assert enc == expected_dict
  
file_path: satpy/satpy/tests/cf_tests/test_encoding.py
imports: import datetime
  import pytest
  import xarray
label_desc: Use image node_id 4 for calling the TestUpdateEncoding obj's underlying member method code with example usage: obj.test_without_time(fake_ds) without return types