code: def calibrate_radiance(array, attributes, index):
      """Calibration for radiance channels."""
      offset = np.float32(attributes["radiance_offsets"][index])
      scale = np.float32(attributes["radiance_scales"][index])
      array = (array - offset) * scale
      return array
  
imports: import logging
  import numpy
  import xarray
  from satpy.readers.hdf4_utils import from_sds
  from satpy.readers.hdfeos_base import HDFEOSBaseFileReader, HDFEOSGeoReader
label_desc: Use image node_id 2 for calling a global function with example usage: calibrate_radiance(array, attributes, index) and returns: array