def adjust_apply_ufunc(apply_ufunc, ufunc, method, inputs, kwargs):
    nextinputs = [(ak._util.wrap(x, behavior) if isinstance(x, (ak.layout.Content, ak.layout.Record)) else x) for x in inputs]
    out = apply_ufunc(ufunc, method, nextinputs, kwargs)
    if (out is NotImplemented):
        return None
    else:
        if (not isinstance(out, tuple)):
            out = (out,)
        out = tuple(((x.layout if isinstance(x, (ak.highlevel.Array, ak.highlevel.Record)) else x) for x in out))
        return (lambda : out)
def adjust_apply_ufunc(apply_ufunc, ufunc, method, inputs, kwargs):
    nextinputs = [(ak._util.wrap(x, behavior) if isinstance(x, (ak.layout.Content, ak.layout.Record)) else x) for x in inputs]
    out = apply_ufunc(ufunc, method, nextinputs, kwargs)
    if (out is NotImplemented):
        return None
    else:
        if (not isinstance(out, tuple)):
            out = (out,)
        out = tuple(((x.layout if isinstance(x, (ak.highlevel.Array, ak.highlevel.Record)) else x) for x in out))
        return (lambda : out)