def METHOD_NAME():
    class bar(m.Circuit):
        name = "bar"
        io = m.IO(ifc=T)
        foo_inst = def_foo()()
        m.wire(io.ifc.I, foo_inst.ifc.I)
        m.wire(io.ifc.O, foo_inst.ifc.O)
    m.compile("build/test_multi_direction_tuple_instance", bar, output="coreir")
    assert check_files_equal(__file__, f"build/test_multi_direction_tuple_instance.json",
                             f"gold/test_multi_direction_tuple_instance.json")