class_docstr: Test netCDF compression encodings.
docstr: Make sure no warning is issued if backends match.
docstr_tok: ["Make","sure","no","warning","is","issued","if","backends","match","."]
code: def test_no_warning_if_backends_match(
      self, scene, filename, monkeypatch
  ):
      """Make sure no warning is issued if backends match."""
      import netCDF4
  
      with monkeypatch.context() as m:
          m.setattr(netCDF4, "__version__", "1.6.0")
          m.setattr(netCDF4, "__netcdf4libversion__", "4.9.0")
          m.setattr(xr, "__version__", "2022.12.0")
          with warnings.catch_warnings():
              scene.save_datasets(filename=filename, writer="cf")
              warnings.simplefilter("error")
  
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 10 for calling the TestNetcdfEncodingKwargs obj's underlying member method code with example usage: obj.test_no_warning_if_backends_match(scene, filename, monkeypatch) without return types