def METHOD_NAME(modelpath, filepath, sceneitems={}):
    """Writes loaded model under modelpath to a file in SBML format. 
    (helper function for writeSBML).
    """
    global sbmlImport_, sbmlError_
    if not sbmlImport_:
        raise ImportError(
            "SBML support could not be loaded because of '%s'" % sbmlError_
        )
    return _writeSBML.METHOD_NAME(modelpath, filepath, sceneitems)