code: def test_matching_pattern_with_list_type_arg(self):
      class M(torch.nn.Module):
          def forward(self, x):
              return torch.ops.aten._reshape_alias_copy.default(
                  x, [1, 2], [3, 4]
              )
  
      def pattern(x, arg0, arg1):
          return torch.ops.aten._reshape_alias_copy.default(
              x, arg0, arg1
          )
  
      def replacement(x, arg0, arg1):
          return torch.ops.aten._reshape_alias_copy.default(
              x, arg1, arg0
          )
  
      traced = symbolic_trace(M())
      matches = subgraph_rewriter.replace_pattern(
          traced, pattern, replacement
      )
  
      self.assertEqual(len(matches), 1)
  
      self.assertExpectedInline(
          traced.code.strip(),
          """\
  def forward(self, x):
      _reshape_alias_copy_default_1 = torch.ops.aten._reshape_alias_copy.default(x, [3, 4], [1, 2]);  x = None
      return _reshape_alias_copy_default_1""",
      )
  
imports: import os
  import sys
  import torch
  from torch.fx import symbolic_trace, subgraph_rewriter
  from torch.fx.annotate import annotate
  from torch.fx.experimental.rewriter import RewritingTracer
  from torch.testing._internal.jit_utils import JitTestCase
label_desc: Use image node_id 24 for calling the TestSubgraphRewriter obj's underlying member method code with example usage: obj.test_matching_pattern_with_list_type_arg() and returns: torch, torch, torch