code: def compare_fq_to_int(hexagon_session, expr, inputs):
      """Compares the float module output with the integer module output"""
      mod = tvm.IRModule.from_expr(expr)
      mod = tvm.relay.transform.InferType()(mod)
      mod_int = tvm.relay.transform.FakeQuantizationToInteger()(mod)
      assert not tvm.ir.structural_equal(mod, mod_int)
  
      mod = build_module(
          mod,
          tvm.target.Target(
              HEXAGON_AOT_LLVM_TARGET, host=HEXAGON_AOT_LLVM_TARGET
          ),
      )
      mod_int = build_module(
          mod_int,
          tvm.target.Target(
              HEXAGON_AOT_LLVM_TARGET, host=HEXAGON_AOT_LLVM_TARGET
          ),
      )
  
      hexagon_mod = hexagon_session.get_executor_from_factory(mod)
      result = run_module(hexagon_mod, inputs)
  
      hexagon_mod = hexagon_session.get_executor_from_factory(mod_int)
      result_int = run_module(hexagon_mod, inputs)
  
      tvm.testing.assert_allclose(
          result, result_int, rtol=1e-02, atol=1e-02
      )
  
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 5 for calling a global function with example usage: compare_fq_to_int(hexagon_session, expr, inputs) without return types