code: def compare_graphs(expr, ref_expr):
      """Compares the given graph with the expected graph"""
      mod = tvm.IRModule.from_expr(expr)
      mod = tvm.relay.transform.InferType()(mod)
      mod_int = tvm.relay.transform.FakeQuantizationToInteger()(mod)
      ref_mod = tvm.IRModule.from_expr(ref_expr)
      ref_mod = tvm.relay.transform.InferType()(ref_mod)
      tvm.ir.assert_structural_equal(
          mod_int["main"], ref_mod["main"], map_free_vars=True
      )
  
file_path: tvm/tests/python/contrib/test_hexagon/test_pass_fq2i_avg_pool2d.py
imports: import numpy
  import pytest
  import tvm
  import tvm.testing
  import tvm.topi.testing
  from tvm import relay
  from tvm.contrib.hexagon.session import Session
  from tvm.contrib.hexagon.pytest_plugin import HEXAGON_AOT_LLVM_TARGET
  from .infrastructure import quantize_np, build_module, run_module
label_desc: Use image node_id 4 for calling a global function with example usage: compare_graphs(expr, ref_expr) without return types