def METHOD_NAME(
    self, outfile: Union[PathLike, str, IO[bytes]],
):
    """ 
    Write to the given file. 
    """
    try:
        import zlib
        compression = ZIP_DEFLATED
    except ImportError:
        compression = ZIP_STORED
    with ZipFile(outfile, "w", compression) as zf:
        zf.writestr("_rels/.rels", self._write_relationships())
        zf.writestr("[Content_Types].xml", self._write_content_types())
        zf.writestr("3D/3dmodel.model", self._write_3d())