def dump_partition_meta(part_meta, meta_file):
    """Dump partition metadata into json file.

    Parameters
    ----------
    part_meta : PartitionMeta
        The partition metadata.
    meta_file : str
        The target file to save data.
    """
    with open(meta_file, "w") as f:
        json.dump(part_meta.dict(), f, sort_keys=True, indent=4)
Dump partition metadata into json file.

    Parameters
    ----------
    part_meta : PartitionMeta
        The partition metadata.
    meta_file : str
        The target file to save data.
    
tools/partition_algo/base.py