code: def input_data_arr() -> xr.DataArray:
      """Create a data array."""
      return xr.DataArray(
          data=[[1, 2], [3, 4]],
          dims=("y", "x"),
          coords={"y": [1, 2], "x": [3, 4]},
          attrs={"name": "var1"},
      )
  
file_path: satpy/satpy/tests/cf_tests/test_area.py
imports: import dask.array
  import numpy
  import pytest
  import xarray
  from pyresample import AreaDefinition, SwathDefinition
  from satpy.cf.area import _add_grid_mapping, area2cf
label_desc: Use image node_id 1 for calling a global function with example usage: input_data_arr() and returns: xr