def METHOD_NAME(self, file_path):
    f = h5py.File(file_path, "w")
    prefix_name = "nature/partition_data/"
    for key in tqdm(
        self.nature_partition_dict.keys(), desc="generate partition h5 file"
    ):
        f[prefix_name + key + "/train"] = self.nature_partition_dict[key]["train"]
        f[prefix_name + key + "/test"] = self.nature_partition_dict[key]["test"]
    f.close()