code: def global_avg_pool2d_rewrite(ref_call, new_args, ctx):
      """Rewrite function for global_avg_pool2d for stopping quantize"""
      if quantize_context().check_to_skip(ref_call):
          return None
  
      expr, x_kind = _get_expr_kind(new_args[0])
  
      if x_kind is None:
          return None
      expr = _forward_op(ref_call, [new_args[0].realize()])
  
      # stop quantize after global_avg_pool2d
      quantize_context().stop_quantize()
      return expr
  
imports: import warnings
  from tvm import topi
  import tvm._ffi
  from tvm.relay.op import op
  from ..None import expr
  from ..None import analysis
  from ..None import op
  from .None import _quantize
  from .quantize import QAnnotateKind, current_qconfig, quantize_context
  from .quantize import _forward_op
label_desc: Use image node_id 16 for calling a global function with example usage: global_avg_pool2d_rewrite(ref_call, new_args, ctx) and returns: expr, None, None