class_docstr: Test netCDF compression encodings.
docstr: Get expected compression level.
docstr_tok: ["Get","expected","compression","level","."]
code: def complevel_exp(self, compression_on):
      """Get expected compression level."""
      if compression_on:
          return 7
      return 0
  
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 5 for calling the TestNetcdfEncodingKwargs obj's underlying member method code with example usage: obj.complevel_exp(compression_on) and returns: int, int