def METHOD_NAME(dbname, dmltype):
    if dmltype == 'insert':
        return TestInsert(dbname, dmltype)
    elif dmltype == 'update':
        return TestUpdate(dbname, dmltype)
    elif dmltype == 'delete':
        return TestDelete(dbname, dmltype)
    else:
        raise Exception("unknown dml type: {}" % (dmltype))