code: def compare_fq_to_int(expr, args, allow_rounding_error=False):
      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)
      result = (
          relay.create_executor(
              "vm", mod=mod, device=tvm.cpu(), target="llvm"
          )
          .evaluate()(*args)
          .numpy()
      )
      result_int = (
          relay.create_executor(
              "vm", mod=mod_int, device=tvm.cpu(), target="llvm"
          )
          .evaluate()(*args)
          .numpy()
      )
  
      if allow_rounding_error:
          assert np.all(
              np.abs(
                  result.astype("int32") - result_int.astype("int32")
              )
              <= 1
          )
      else:
          assert np.array_equal(result, result_int)
  
imports: import numpy
  import pytest
  import tvm
  import tvm.testing
  from tvm import relay
  from tvm.relay.transform import fake_quantization_to_integer
label_desc: Use image node_id 1 for calling a global function with example usage: compare_fq_to_int(expr, args, allow_rounding_error) without return types