code: def _common(self, fn, op_count):
      args = [
          unet_2d.UNet2DOutput(
              sample=torch.randn(10),
          )
      ]
      obj1 = fn(*args)
      cnts = torch._dynamo.testing.CompileCounter()
      opt_fn = torch._dynamo.optimize_assert(cnts)(fn)
      obj2 = opt_fn(*args)
      self.assertTrue(same(obj1, obj2))
      self.assertEqual(cnts.frame_count, 1)
      self.assertEqual(cnts.op_count, op_count)
  
file_path: pytorch/test/dynamo/test_base_output.py
imports: import unittest.mock
  import torch
  import torch._dynamo.test_case
  import torch._dynamo.testing
  from torch._dynamo.testing import same
label_desc: Use image node_id 3 for calling the TestBaseOutput obj's underlying member method code with example usage: obj._common(fn, op_count) without return types