code: def test_fq_qat_positive_couple():
      # Several consecutive operations are converted.
      shape_x = [1, 2, 4]
      shape_w = [2]
      a = relay.var("a", shape=shape_x, dtype="int8")
      b = relay.var("b", shape=shape_w, dtype="int8")
  
      op0 = relay.qnn.op.dequantize(a, relay.const(2.0), relay.const(0))
      op1 = relay.qnn.op.dequantize(b, relay.const(6.0), relay.const(0))
      op2 = relay.op.reshape(op0, (1, 4, 2))
      op3 = relay.op.broadcast_to(op1, (2, 2, 2))
      op4 = relay.op.nn.batch_matmul(op2, op3)
      expr = relay.op.erf(op4)
  
      op0 = relay.op.reshape(a, (1, 4, 2))
      op1 = relay.op.broadcast_to(b, (2, 2, 2))
      op3 = relay.qnn.op.qnn.batch_matmul(
          op0,
          op1,
          relay.const(0),
          relay.const(0),
          relay.const(2.0),
          relay.const(6.0),
      )
      op4 = relay.qnn.op.qnn.dequantize(
          op3, relay.const(12.0), relay.const(0)
      )
      expected_expr = relay.op.erf(op4)
  
      x_np = np.random.randint(-128, 127, size=shape_x, dtype="int8")
      w_np = np.random.randint(-128, 127, size=shape_w, dtype="int8")
      compare_expected_fq_qat_to_int(expr, expected_expr, [x_np, w_np])
  
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 48 for calling a global function with example usage: test_fq_qat_positive_couple() without return types