def METHOD_NAME():
    connect = None
    logger = get_root_logger()
    for input in graph.input:
        for i, node in enumerate(graph.node):
            if node.op_type == 'Identity' and node.input[0] == input.name:
                connect = (node.input[0], node.output[0])
                logger.info(f'remove node {node.name}')
                del graph.node[i]
                break
        if connect:
            break
    if not connect:
        return False
    src, dst = connect
    for node in graph.node:
        for i, input_name in enumerate(node.input):
            if input_name == dst:
                node.input[i] = src
    # the input just changed won't be an output
    return True