def _get_h5_group(self, path):
        """Get the H5 entry group. If it doesn't exist, return an empty dict."""
        try:
            if not path:
                self._h5_entry_group = self.h5_file["vars"]
            else:
                self._h5_entry_group = self.h5_file[path]["vars"]
            self._h5_entry_initialized = True
        except KeyError:
            self._h5_entry_group = {}
            self._h5_entry_initialized = False
Get the H5 entry group. If it doesn't exist, return an empty dict.
keras/src/saving/saving_lib.py