code: def test_modularize_pass_succeeds_when_a_submodule_is_called_multiple_times(
      self,
  ):
      class TestModule(torch.nn.Module):
          def __init__(self):
              super().__init__()
              self.relu = torch.nn.ReLU()
  
          def forward(self, x, y):
              out = x + y
              out = self.relu(out)
              out = out + x
              out = self.relu(out)
              return out
  
      onnx_program = torch.onnx.dynamo_export(
          TestModule(), torch.randn(3), torch.randn(3)
      )
      model_proto = onnx_program.model_proto
      function_proto_names = [
          function.name for function in model_proto.functions
      ]
      self.assertIn(
          "torch_nn_modules_activation_ReLU_relu_1",
          function_proto_names,
      )
      self.assertIn(
          "torch_nn_modules_activation_ReLU_relu_2",
          function_proto_names,
      )
  
file_path: pytorch/test/onnx/test_fx_passes.py
imports: import torch
  import torch._dynamo
  import torch.fx
  from torch._custom_op import impl
  from torch.onnx._internal.fx.passes import _utils
  from torch.testing._internal import common_utils
label_desc: Use image node_id 2 for calling the TestModularizePass obj's underlying member method code with example usage: obj.test_modularize_pass_succeeds_when_a_submodule_is_called_multiple_times() and returns: out