def save_json(data, file_path: str):
    """
    Save a dictionary to a JSON file.

    Args:
        data: The dictionary to save.
        file_path (str): The path to save the JSON file.
    """
    with open(file_path, "w", encoding="utf-8") as f:
        json.dump(data, f, indent=4)

    Save a dictionary to a JSON file.

    Args:
        data: The dictionary to save.
        file_path (str): The path to save the JSON file.
    
opensora/utils/ckpt.py