code: def process_metadata(meta):
      
      mvgds = []
  
      metadata = meta[0]
  
      for mvgd in meta:
          if isinstance(mvgd['mv_grid_districts'], list):
              mvgds.extend(mvgd['mv_grid_districts'])
          else:
              mvgds.append(mvgd['mv_grid_districts'])
  
      metadata['mv_grid_districts'] = mvgds
  
      return metadata
docs: Merge metadata of run on multiple grid districts
  
      Parameters
      ----------
      meta: list of dict
          Metadata of run of each MV grid district
  
      Returns
      -------
      dict
          Single metadata dict including merge metadata