def METHOD_NAME(self):
    """
    Tests that a single node in the graph is DCE'd correctly.
    """
    class TestModule(torch.nn.Module):
        def __init__(self):
            super().__init__()
            self.attr_1 = torch.nn.Parameter(torch.tensor([-0.9]))
        def forward(self, x):
            a = x + 1
            return x + self.attr_1
    self._run_dce_and_test(TestModule(), expect_dce_changes=True)