code: def structural_equal_no_gs(mod1: IRModule, mod2: IRModule) -> bool:
      """
      Checks structural equality but ignores global symbols
      """
  
      # for every function in the modules, remove global symbols from the attrs and then compare
      def remove_global_symbols(mod: IRModule) -> IRModule:
          stripped_mod = IRModule()
          for global_var in mod.get_global_vars():
              func = mod[global_var]
              stripped_mod[global_var] = func.without_attr(
                  "global_symbol"
              )
          return stripped_mod
  
      return structural_equal(
          remove_global_symbols(mod1), remove_global_symbols(mod2)
      )
  
file_path: tvm/python/tvm/meta_schedule/testing/space_generation.py
imports: from typing import List, Optional, Tuple, Union
  from typing_extensions import Literal
  from tvm import meta_schedule
  from tvm.ir import IRModule, structural_equal
  from tvm.target import Target
  from tvm.tir import Schedule
  from tvm.tir.schedule import Trace
  from tvm.tir.schedule.testing import verify_trace_roundtrip
label_desc: Use image node_id 2 for calling a global function with example usage: structural_equal_no_gs(mod1, mod2) and returns: structural_equal, stripped_mod