def METHOD_NAME(slot, withShape):
    # has to handle Lazyflow source
    src = LazyflowSource(slot)
    shape = src._op5.Output.meta.shape
    if withShape:
        return src, shape
    else:
        return src