code: def test_alter_with_subfunc():
      v1 = relay.var("v", shape=[1, 256, 10, 10], dtype="float32")
      v2 = relay.image.resize2d(
          v1,
          size=[16, 16],
          roi=[0.0, 0.0, 0.0, 0.0],
          rounding_method="",
      )
      sub_func = relay.Function([v1], v2)
      x1 = relay.var("x", shape=[1, 256, 10, 10], dtype="float32")
      x2 = sub_func(x1)
      x3 = relay.image.resize2d(
          x2, size=[8, 8], roi=[0.0, 0.0, 0.0, 0.0], rounding_method=""
      )
      func = relay.Function([x1], x3)
      mod = tvm.IRModule.from_expr(func)
      mod = relay.transform.InferType()(mod)
      assert tvm.ir.structural_equal(
          relay.transform.AlterOpLayout()(mod), mod
      )
  
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 39 for calling a global function with example usage: test_alter_with_subfunc() without return types