code: def test_ethosu_pooling_invalid_upscale_method():
      invalid_upscale_method = "FOO"
      dtype = "int8"
  
      ifm = relay.var("ifm", shape=[1, 56, 72, 55], dtype=dtype)
      pooling = make_ethosu_pooling(
          ifm,
          "MAX",
          (3, 2),
          55,
          dtype,
          (1, 2),
          (0, 1, 2, 3),
          upscale=invalid_upscale_method,
      )
      func = relay.Function([ifm], pooling)
      with pytest.raises(TVMError):
          run_opt_pass(func, relay.transform.InferType())
  
imports: import pytest
  from tvm import relay, TVMError
  from tvm.relay.testing import run_opt_pass
  from .infra import make_ethosu_conv2d
  from .infra import make_ethosu_depthwise_conv2d
  from .infra import make_ethosu_pooling
  from .infra import make_ethosu_binary_elementwise
  from .infra import make_ethosu_identity
  from .infra import make_ethosu_unary_elementwise
label_desc: Use image node_id 9 for calling a global function with example usage: test_ethosu_pooling_invalid_upscale_method() without return types