code: def _verify_const_fold_mod(
      self, mod_folded: const_fold.FoldedGraphModule
  ):
      self.assertTrue(mod_folded.const_subgraph_module is not None)
  
      # Check that we don't have the const or non-const fold graphs in the gm, and
      # that we do have the const folded get_attr.
      found_folded_attrs = False
      for n in mod_folded.graph.nodes:
          if n.op == "get_attr" and n.target.startswith(
              "_FX_CONST_FOLDED_ATTRS"
          ):
              found_folded_attrs = True
          elif n.op == "call_module":
              self.assertTrue(n.target not in {"submod_0", "submod_1"})
      self.assertTrue(found_folded_attrs)
  
imports: import operator
  import torch
  import torch.fx
  from torch.fx.experimental import const_fold
  from torch.fx.passes.shape_prop import _extract_tensor_metadata, ShapeProp
  from torch.testing._internal.common_utils import TestCase
label_desc: Use image node_id 2 for calling the TestConstFold obj's underlying member method code with example usage: obj._verify_const_fold_mod(mod_folded) without return types