code: def test_alter_with_reduce():
      x = relay.var("x", shape=(1, 1, 1, 1))
      y = relay.image.resize2d(x, (2, 4))
      z = relay.mean(y, axis=0)
      a = relay.image.resize1d(z, (1,))
      func = relay.Function((x,), a)
      mod = tvm.IRModule.from_expr(func)
      mod = relay.transform.InferType()(mod)
      with tvm.transform.PassContext(opt_level=4):
          relay.build(mod, target="llvm")
  
imports: import pytest
  import tvm
  from tvm import relay, topi
  from tvm.relay import transform, analysis
  from tvm.relay.testing.temp_op_attr import TempOpAttr
  from tvm.relay.testing import run_infer_type
  import numpy
  import tvm.testing
  from tvm.relay import testing
label_desc: Use image node_id 40 for calling a global function with example usage: test_alter_with_reduce() without return types