code: def global_avg_pool2d_partition_function(ref_call, new_args, ctx):
      cond, expr = partition_expr_check(new_args[0])
      if cond:
          expr = new_args[0].realize()
      else:
          expr = QPartitionExpr(new_args[0]).realize()
  
      return _forward_op(ref_call, [expr])
  
file_path: tvm/python/tvm/relay/quantize/_partition.py
imports: import tvm
  from ..None import expr
  from ..None import analysis
  from .None import _quantize
  from .quantize import _forward_op
label_desc: Use image node_id 9 for calling a global function with example usage: global_avg_pool2d_partition_function(ref_call, new_args, ctx) and returns: _forward_op