code: def test_matching_variable_arguments(self):
      class M(torch.nn.Module):
          def forward(self, x):
              return torch.ops.aten.max_pool2d_with_indices.default(
                  x, [2, 2], stride=[2, 2]
              )
  
      def pattern(x, kernel_size, stride):
          # default padding is [0, 0]
          return torch.ops.aten.max_pool2d_with_indices.default(
              x, kernel_size, stride, padding=[0, 0]
          )
  
      traced = symbolic_trace(M())
      matches = subgraph_rewriter.replace_pattern(
          traced, pattern, pattern
      )
  
      self.assertEqual(len(matches), 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 26 for calling the TestSubgraphRewriter obj's underlying member method code with example usage: obj.test_matching_variable_arguments() and returns: torch, torch