def METHOD_NAME(self, n, dtype):
    """Check hafnian(I)=0"""
    A = dtype(np.identity(n))
    rpt = np.ones([n], dtype=np.int32)
    haf = hafnian_repeated(A, rpt)
    assert np.allclose(haf, 0)
    haf = hafnian_repeated(A, rpt, loop=True)
    assert np.allclose(haf, 1)