code: def _ensure_dataarray(arr):
      if not isinstance(arr, xr.DataArray):
          attrs = dict(arr.attrs).copy()
          arr = xr.DataArray(
              da.from_array(arr),
              dims=arr.dimensions,
              attrs=attrs,
              name=arr.name,
          )
      return arr
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  from datetime import timedelta
  from functools import cached_property
  import dask.array
  import numpy
  import xarray
  from netCDF4 import default_fillvals
  from pyresample import geometry
  from satpy.readers._geos_area import get_geos_area_naming
  from satpy.readers.eum_base import get_service_mode
  from .netcdf_utils import NetCDF4FsspecFileHandler
label_desc: Use image node_id 3 for calling a global function with example usage: _ensure_dataarray(arr) and returns: arr