def adjust(custom, inputs, kwargs):
    args = [(ak._util.wrap(x, behavior) if isinstance(x, (ak.layout.Content, ak.layout.Record)) else x) for x in inputs]
    out = custom(*args, **kwargs)
    if (not isinstance(out, tuple)):
        out = (out,)
    return tuple(((x.layout if isinstance(x, (ak.highlevel.Array, ak.highlevel.Record)) else x) for x in out))
def adjust(custom, inputs, kwargs):
    args = [(ak._util.wrap(x, behavior) if isinstance(x, (ak.layout.Content, ak.layout.Record)) else x) for x in inputs]
    out = custom(*args, **kwargs)
    if (not isinstance(out, tuple)):
        out = (out,)
    return tuple(((x.layout if isinstance(x, (ak.highlevel.Array, ak.highlevel.Record)) else x) for x in out))