def METHOD_NAME(cls, obj: Any, path: str) -> None:
    """Serialize data into a MsgPack binary dump file.
    Args:
        obj: Data that needs encoding.
        path: Path to the created dump file.
    """
    with open(path, "wb") as file:
        msgpack.pack(obj, file, default=cls._default, strict_types=True)