code: def _parent_foreign_key_mappings(cls):
          
          parent_rel = cls.__mapper__.relationships.get(cls.export_parent)
          if parent_rel:
              return {l.name: r.name for (l, r) in parent_rel.local_remote_pairs}
          return {}
docs: Get a mapping of foreign name to the local name of foreign keys