def METHOD_NAME(test_case, device, shape):
    gen = flow.Generator()
    gen.manual_seed(0)
    x = flow.randn(shape)
    y1 = flow.randn_like(
        x, dtype=flow.float32, device=flow.device(device), generator=gen
    )
    gen.manual_seed(0)
    x = flow.randn(shape)
    y2 = flow.randn_like(
        x, dtype=flow.float32, device=flow.device(device), generator=gen
    )
    test_case.assertTrue(np.allclose(y1.numpy(), y2.numpy(), atol=1e-4, rtol=1e-4))