def METHOD_NAME(xcoords, ycoords, zcoords, xval, yval, method, zexpected):
    xv = _cxtgeo.new_doublearray(4)
    yv = _cxtgeo.new_doublearray(4)
    zv = _cxtgeo.new_doublearray(4)
    for num, xvalue in enumerate(xcoords):
        _cxtgeo.doublearray_setitem(xv, num, xvalue)
    for num, yvalue in enumerate(ycoords):
        _cxtgeo.doublearray_setitem(yv, num, yvalue)
    for num, zvalue in enumerate(zcoords):
        _cxtgeo.doublearray_setitem(zv, num, zvalue)
    zresult = _cxtgeo.x_interp_map_nodes(xv, yv, zv, xval, yval, method)
    if isinstance(zexpected, list):
        assert zresult in zexpected
    else:
        assert zresult == zexpected