class_docstr: Test netCDF compression encodings.
docstr: Test 'encoding' keyword argument.
docstr_tok: ["Test","'encoding","'","keyword","argument","."]
code: def test_encoding_kwarg(self, scene, encoding, filename, expected):
      """Test 'encoding' keyword argument."""
      scene.save_datasets(
          filename=filename, encoding=encoding, writer="cf"
      )
      self._assert_encoding_as_expected(filename, expected)
  
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 7 for calling the TestNetcdfEncodingKwargs obj's underlying member method code with example usage: obj.test_encoding_kwarg(scene, encoding, filename, expected) without return types