def METHOD_NAME(d: dict, filepath: str, **kwargs) -> None:
    """
    Write dictionary d to filepath in JSON format using MontyDecoder
    """
    with open(filepath, "wt") as fh:
        json.dump(d, fh, cls=MontyEncoder, **kwargs)