def METHOD_NAME(caplog):
    class Main(m.Circuit):
        T1 = m.EnqIO[m.Bits[5]]
        T2 = m.Producer(m.Decoupled[m.Bits[5]])
        assert T1 == T2
        v1, v2 = T1(), T2()
        # Should not error when wiring
        v1 @= v2
        assert len(caplog.messages) == 0
        T3 = m.DeqIO[m.Bits[5]]
        T4 = m.Consumer(m.Decoupled[m.Bits[5]])
        assert T3 == T4
        v3, v4 = T3(), T4()
        # Should not error when wiring
        v3 @= v4
        assert len(caplog.messages) == 0