code: def _create_grid_mapping(area):
      """Create the grid mapping instance for `area`."""
      import pyproj
  
      if Version(pyproj.__version__) < Version("2.4.1"):
          # technically 2.2, but important bug fixes in 2.4.1
          raise ImportError(
              "'cf' writer requires pyproj 2.4.1 or greater"
          )
      # let pyproj do the heavily lifting (pyproj 2.0+ required)
      grid_mapping = area.crs.to_cf()
      return area.area_id, grid_mapping
  
imports: import logging
  import xarray
  from packaging.version import Version
  from pyresample.geometry import AreaDefinition, SwathDefinition
label_desc: Use image node_id 2 for calling a global function with example usage: _create_grid_mapping(area) and returns: area,  grid_mapping