code: def test_inplace_normalize(self):
      def fn(a, b):
          x = torch.cos(a)
          x += b
          return torch.sin(x)
  
      a = torch.randn(10)
      b = torch.randn(10).to(torch.float64)
  
      ref = fn(a, b)
  
      optimized_fn = torch._dynamo.optimize("aot_eager")(fn)
      res = optimized_fn(a, b)
      self.assertTrue(same(ref, res))
  
imports: import functools
  import unittest
  import torch
  import torch._dynamo
  import torch._dynamo.test_case
  from torch._dynamo.backends.debugging import ExplainWithBackend
  from torch._dynamo.backends.onnxrt import has_onnxruntime
  from torch._dynamo.backends.tvm import has_tvm
  from torch._dynamo.testing import same
  from torch.testing._internal.inductor_utils import HAS_CUDA
label_desc: Use image node_id 1 for calling the NormalizeIRTests obj's underlying member method code with example usage: obj.test_inplace_normalize() and returns: torch