def METHOD_NAME(function, domtree):
    METHOD_NAME = {}
    for block in function.basic_blocks:
        idom_block = domtree.immediate_dominator(block)
        METHOD_NAME[block.name] = idom_block.name if idom_block else None
    return METHOD_NAME