code: def save_coeffs(coeffs, out_dir=""):
      """Save calibration coefficients to HDF5 files."""
      for platform in coeffs.keys():
          fname = os.path.join(
              out_dir, "%s_calibration_data.h5" % platform
          )
          fid = h5py.File(fname, "w")
  
          for chan in coeffs[platform].keys():
              fid.create_group(chan)
              fid[chan]["datetime"] = coeffs[platform][chan]["datetime"]
              fid[chan]["slope1"] = coeffs[platform][chan]["slope1"]
              fid[chan]["intercept1"] = coeffs[platform][chan][
                  "intercept1"
              ]
              fid[chan]["slope2"] = coeffs[platform][chan]["slope2"]
              fid[chan]["intercept2"] = coeffs[platform][chan][
                  "intercept2"
              ]
  
          fid.close()
          print("Calibration coefficients saved for %s" % platform)
  
file_path: satpy/utils/fetch_avhrr_calcoeffs.py
imports: import datetime
  import os.path
  import sys
  import h5py
  import urllib2
label_desc: Use image node_id 4 for calling a global function with example usage: save_coeffs(coeffs, out_dir) without return types