code: def _is_area(data_arr: xr.DataArray) -> bool:
      return isinstance(data_arr.attrs["area"], AreaDefinition)
  
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 3 for calling a global function with example usage: _is_area(data_arr) and returns: isinstance