code: def check_unique_projection_coords(
      data_arrays: dict[str, xr.DataArray]
  ) -> None:
      """Check that all datasets share the same projection coordinates x/y."""
      unique_x = set()
      unique_y = set()
      for dataarray in data_arrays.values():
          if "y" in dataarray.dims:
              token_y = tokenize(dataarray["y"].data)
              unique_y.add(token_y)
          if "x" in dataarray.dims:
              token_x = tokenize(dataarray["x"].data)
              unique_x.add(token_x)
      if len(unique_x) > 1 or len(unique_y) > 1:
          raise ValueError(
              "Datasets to be saved in one file (or one group) must have identical projection coordinates."
              "Please group them by area or save them in separate files."
          )
  
imports: from __future__ import annotations
  import logging
  import warnings
  from collections import defaultdict
  from contextlib import suppress
  import numpy
  import xarray
  from dask.base import tokenize
  from pyproj import CRS
  from pyresample.geometry import AreaDefinition, SwathDefinition
label_desc: Use image node_id 16 for calling a global function with example usage: check_unique_projection_coords(data_arrays) without return types