code: def add_downsampled_geometry_data(h5f):
      """Add downsampled geometry data to an h5py file instance."""
      geometry_data = h5f.create_group("Geometry_data")
      longitude = geometry_data.create_dataset(
          "Longitude", data=LON_LAT_ARRAY, chunks=(47, 63)
      )
      longitude.attrs["Resampling_interval"] = 10
      latitude = geometry_data.create_dataset(
          "Latitude", data=LON_LAT_ARRAY, chunks=(47, 63)
      )
      latitude.attrs["Resampling_interval"] = 10
  
      angles_slope = np.array([0.01], dtype=np.float32)
      angles_offset = np.array([0], dtype=np.float32)
  
      azimuth = geometry_data.create_dataset(
          "Sensor_azimuth", data=AZI_ARRAY, chunks=(47, 63)
      )
      azimuth.attrs["Resampling_interval"] = 10
      azimuth.attrs["Slope"] = angles_slope
      azimuth.attrs["Offset"] = angles_offset
      zenith = geometry_data.create_dataset(
          "Sensor_zenith", data=ZEN_ARRAY, chunks=(47, 63)
      )
      zenith.attrs["Resampling_interval"] = 10
      zenith.attrs["Slope"] = angles_slope
      zenith.attrs["Offset"] = angles_offset
  
      sazimuth = geometry_data.create_dataset(
          "Solar_azimuth", data=AZI_ARRAY, chunks=(47, 63)
      )
      sazimuth.attrs["Resampling_interval"] = 10
      sazimuth.attrs["Slope"] = angles_slope
      sazimuth.attrs["Offset"] = angles_offset
      szenith = geometry_data.create_dataset(
          "Solar_zenith", data=ZEN_ARRAY, chunks=(47, 63)
      )
      szenith.attrs["Resampling_interval"] = 10
      szenith.attrs["Slope"] = angles_slope
      szenith.attrs["Offset"] = angles_offset
  
imports: import sys
  from datetime import datetime, timedelta
  import dask
  import h5py
  import numpy
  import pytest
  from satpy.readers.sgli_l1b import HDF5SGLI
label_desc: Use image node_id 4 for calling a global function with example usage: add_downsampled_geometry_data(h5f) without return types