code: def create_xarray(arr):
      """Create an `xarray.DataArray`."""
      res = xr.DataArray(arr, dims=["y", "x"])
      return res
  
imports: import functools
  import logging
  from datetime import datetime, timedelta
  import dask.array
  import numpy
  import xarray
  from dask import delayed
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_chunk_size_limit
label_desc: Use image node_id 3 for calling a global function with example usage: create_xarray(arr) and returns: res