def METHOD_NAME(self):
    try:
        sdfg = dace.SDFG('ok')
        state = sdfg.add_state('also_ok')
        A = state.add_array('A', [1], dace.float32)
        B = state.add_array('B', [1], dace.float32)
        t = state.add_tasklet('tasklet', {'$a'}, {' b'}, '')
        state.add_edge(A, None, t, '$a', dace.Memlet.from_array(A.data, A.desc(sdfg)))
        state.add_edge(t, ' b', B, None, dace.Memlet.from_array(B.data, B.desc(sdfg)))
        sdfg.validate()
        self.fail('Failed to detect invalid connectors')
    except dace.sdfg.InvalidSDFGError as ex:
        print('Exception caught:', ex)