docs: def update_lipd_v1_3_structure(d):
      """
      Update the structure for summary and ensemble tables
      :param dict d: Metadata
      :return dict d: Metadata
      """
      for key in ["paleoData", "chronData"]:
          if key in d:
              for entry1 in d[key]:
                  if "model" in entry1:
                      for entry2 in entry1["model"]:
                          for key_table in ["summaryTable", "ensembleTable"]:
                              if key_table in entry2:
                                  if isinstance(entry2[key_table], dict):
                                      try:
                                          _tmp = entry2[key_table]
                                          entry2[key_table] = []
                                          entry2[key_table].append(_tmp)
                                      except Exception as e:
                                          logger_versions.error("update_lipd_v1_3_structure: Exception: {}".format(e))
      return d