def METHOD_NAME(self, sfile, template=None, pristine=False, engine="xtgeo"):
    """Export on SEGY using segyio library.
    Args:
        self (:class:`xtgeo.cube.Cube`): The instance
        sfile (str): File name to export to.
        template (str): Use an existing file a template.
        pristine (bool): Make SEGY from scrtach if True; otherwise use an
            existing SEGY file.
        engine (str): Use 'xtgeo' or (later?) 'segyio'
    """
    if not isinstance(self, xtgeo.cube.Cube):
        raise ValueError("first argument is not a Cube instance")
    if engine == "segyio":
        _export_segy_segyio(self, sfile, template=template, pristine=pristine)
    else:
        _export_segy_xtgeo(self, sfile)