code: def maketest(module_cls, exception_msg_pattern=None, ctxmgr=None):
      def wrapper(self):
          nonlocal ctxmgr
          if not ctxmgr:
              ctxmgr = nop_ctx_mgr()
          with ctxmgr:
              verify_reusing_compiled_graph(
                  module_cls(), exception_msg_pattern
              )
  
      return wrapper
  
imports: import unittest
  from torch._lazy.ts_backend import init
  from torch._lazy import config
  from torch._lazy.extract_compiled_graph import extract_compiled_graph
  import torch
  from torch import nn
  import dis
  import inspect
  from torch import fx
  import re
  from contextlib import contextmanager
  import copy
label_desc: Use image node_id 6 for calling a global function with example usage: maketest(module_cls, exception_msg_pattern, ctxmgr) and returns: wrapper