class_docstr: Test netCDF compression encodings.
docstr: Get expectated file contents.
docstr_tok: ["Get","expectated","file","contents","."]
code: def expected(self, complevel_exp):
      """Get expectated file contents."""
      return {
          "data": [10, 20, 30],
          "scale_factor": 0.1,
          "fill_value": 3,
          "dtype": np.int8,
          "complevel": complevel_exp,
      }
  
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 6 for calling the TestNetcdfEncodingKwargs obj's underlying member method code with example usage: obj.expected(complevel_exp) and returns: dict