code: def test_make_cf_dataarray_lonlat():
      """Test correct CF encoding for area with lon/lat units."""
      from pyresample import create_area_def
  
      from satpy.cf.data_array import make_cf_data_array
      from satpy.resample import add_crs_xy_coords
  
      area = create_area_def(
          "mavas", 4326, shape=(5, 5), center=(0, 0), resolution=(1, 1)
      )
      da = xr.DataArray(
          np.arange(25).reshape(5, 5),
          dims=("y", "x"),
          attrs={"area": area},
      )
      da = add_crs_xy_coords(da, area)
      new_da = make_cf_data_array(da)
      assert new_da["x"].attrs["units"] == "degrees_east"
      assert new_da["y"].attrs["units"] == "degrees_north"
  
file_path: satpy/satpy/tests/cf_tests/test_dataaarray.py
imports: import numpy
  import xarray
  from satpy.tests.utils import make_dsq
label_desc: Use image node_id 2 for calling a global function with example usage: test_make_cf_dataarray_lonlat() without return types