code: def _check_scaled_x_coordinate_variable(ds, masked_ds):
      assert "x" in ds.coords
      x_coord = ds.coords["x"]
      np.testing.assert_equal(np.diff(x_coord), 1)
      x_attrs = x_coord.attrs
      assert x_attrs.get("standard_name") == "projection_x_coordinate"
      assert x_attrs.get("units") == "meters"
      assert "scale_factor" in x_attrs
      assert x_attrs["scale_factor"] > 0
      assert "add_offset" in x_attrs
  
      unscaled_x = masked_ds.coords["x"].values
      assert (np.diff(unscaled_x) > 0).all()
  
imports: import logging
  import os
  import shutil
  from datetime import datetime, timedelta
  from glob import glob
  import dask
  import dask.array
  import numpy
  import pytest
  import xarray
  from pyproj import CRS
  from satpy.resample import update_resampled_coords
label_desc: Use image node_id 4 for calling a global function with example usage: _check_scaled_x_coordinate_variable(ds, masked_ds) without return types