code: def test_do_not_convert_summation(target_precision):
      """Ops that could involve a large summation are not allowed in fp16."""
      shape = [1, 3, 16, 16]
      a = relay.var("a", shape=shape)
      ops = [
          relay.sum,
          relay.mean,
          relay.nn.global_avg_pool2d,
          lambda inp: relay.nn.adaptive_avg_pool2d(inp, (1, 1)),
      ]
      for op in ops:
          mod = tvm.IRModule.from_expr(op(a))
          out_mod = ToMixedPrecision(target_precision)(mod)
          orig_mod = tvm.relay.transform.InferType()(mod)
          assert tvm.ir.structural_equal(orig_mod, out_mod)
  
imports: from typing import Any, Dict, List
  import numpy
  import pytest
  import tvm
  from tvm import relay
  from tvm.relay.testing import lstm
  from tvm.relay.transform import InferType, ToMixedPrecision, mixed_precision
label_desc: Use image node_id 10 for calling a global function with example usage: test_do_not_convert_summation(target_precision) without return types