code: def _fill_swath_edges(angles):
      """Fill gaps at edges of swath."""
      darr = xr.DataArray(angles, dims=["y", "x"])
      darr = darr.bfill("x")
      darr = darr.ffill("x")
      darr = darr.bfill("y")
      darr = darr.ffill("y")
      angles = darr.data
      return angles
  
imports: import logging
  import dask.array
  import defusedxml.ElementTree
  import numpy
  import xarray
  from pyresample import geometry
  from satpy._compat import cached_property
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 1 for calling a global function with example usage: _fill_swath_edges(angles) and returns: angles