def METHOD_NAME(thresholds, minsizes, output="seg__%.2f", **opts):
    """Call the i.segment module hierarchical"""
    iseg = Module("i.segment")
    seeds = opts["seeds"] if opts["seeds"] else None
    for thr, msize in zip(thresholds, minsizes):
        opts["threshold"] = thr
        opts["minsize"] = msize
        opts["seeds"] = seeds
        opts["flags"] = FLAGS
        opts["output"] = output % thr
        start = time.time()
        iseg(**opts)
        print("%s, required: %.2fs" % (opts["output"], time.time() - start))
        seeds = opts["output"]  # update seeds