code: def _check_scaled_y_coordinate_variable(ds, masked_ds):
      assert "y" in ds.coords
      y_coord = ds.coords["y"]
      np.testing.assert_equal(np.diff(y_coord), 1)
      y_attrs = y_coord.attrs
      assert y_attrs.get("standard_name") == "projection_y_coordinate"
      assert y_attrs.get("units") == "meters"
      assert "scale_factor" in y_attrs
      assert y_attrs["scale_factor"] < 0
      assert "add_offset" in y_attrs
  
      unscaled_y = masked_ds.coords["y"].values
      assert (np.diff(unscaled_y) < 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 5 for calling a global function with example usage: _check_scaled_y_coordinate_variable(ds, masked_ds) without return types