code: def test_peephole_with_non_output_writes(self):
      @torch.jit.ignore
      def nomnom(x):
          pass
  
      def test_write(x):
          t = torch.ones_like(x)
          z = x.clone()
          y = z + 0
          z.add_(t)
          # this makes sure z isn't blasted out of existence
          # because it isn't returned or used in a side-effectful
          # way
          nomnom(z)
          return y + y
  
      a = torch.ones(4, 4)
      j = self.checkScript(test_write, (a,))
  
imports: import torch
  from torch.testing._internal.jit_utils import JitTestCase, RUN_CUDA, _inline_everything
  from torch import nn
  from torch.testing import FileCheck
  from typing import Callable, List
  import unittest
label_desc: Use image node_id 2 for calling the TestPeephole obj's underlying member method code with example usage: obj.test_peephole_with_non_output_writes() and returns: unknown