code: def test_subgraph_matcher_ignore_literals(self):
      def original(x):
          return x + 1
  
      original_graph = make_fx(original)(torch.ones(3, 3)).graph
      original_graph.eliminate_dead_code()
  
      def pattern(x):
          return x + 2
  
      pattern_graph = make_fx(pattern)(torch.ones(4, 4)).graph
      pattern_graph.eliminate_dead_code()
  
      subgraph_matcher = SubgraphMatcher(pattern_graph)
      match_result = subgraph_matcher.match(original_graph)
      self.assertEqual(len(match_result), 0)
  
      subgraph_matcher = SubgraphMatcher(
          pattern_graph, ignore_literals=True
      )
      match_result = subgraph_matcher.match(original_graph)
      self.assertEqual(len(match_result), 1)
  
imports: import os
  import sys
  import torch
  import torch.nn.functional
  from torch.fx import symbolic_trace
  from torch.fx.experimental.proxy_tensor import make_fx
  from torch.fx.passes.utils.matcher_utils import SubgraphMatcher
  from torch.testing._internal.jit_utils import JitTestCase
  from torch.fx.passes.utils.matcher_with_name_node_map_utils import SubgraphMatcherWithNameNodeMap
  from torch.testing._internal.common_utils import IS_WINDOWS
  from torch.testing._internal.common_utils import run_tests
  import unittest
label_desc: Use image node_id 4 for calling the TestMatcher obj's underlying member method code with example usage: obj.test_subgraph_matcher_ignore_literals() and returns: unknown, unknown