code: def recarray2dict(arr):
      """Change record array to a dictionary."""
      res = {}
      for dtuple in arr.dtype.descr:
          key = dtuple[0]
          ntype = dtuple[1]
          data = arr[key]
          if isinstance(ntype, list):
              res[key] = recarray2dict(data)
          else:
              res[key] = data
  
      return res
  
imports: import logging
  from datetime import datetime
  import numpy
  import xarray
  from satpy.readers._geos_area import get_area_definition, get_area_extent
  from satpy.readers.hrit_base import HRITFileHandler, ancillary_text, annotation_header, base_hdr_map, image_data_function, time_cds_short
label_desc: Use image node_id 1 for calling a global function with example usage: recarray2dict(arr) and returns: res