code: def test_adaptive_pool():
      """test cases of adaptive_pool"""
      verify_adaptive_pool((1, 3, 224, 224), (1, 1), "max")
      verify_adaptive_pool((1, 3, 224, 224), (1, 1), "avg")
      verify_adaptive_pool((1, 14, 56, 78), (34, 13), "max")
      verify_adaptive_pool((1, 5, 46, 97), (4, 96), "avg")
      verify_adaptive_pool(
          (1, 224, 224, 3), (1, 1), "max", layout="NHWC"
      )
      verify_adaptive_pool(
          (1, 5, 46, 97), (4, 96), "avg", layout="NHWC"
      )
      verify_adaptive_pool(
          (1, 16, 32, 32, 32), (1, 1, 1), "max", layout="NCDHW"
      )
      verify_adaptive_pool(
          (1, 16, 32, 32, 32), (1, 1, 1), "avg", layout="NCDHW"
      )
      verify_adaptive_pool(
          (1, 16, 32, 32, 32), (2, 2, 2), "avg", layout="NCDHW"
      )
      verify_adaptive_pool(
          (1, 16, 64, 32, 32), (7, 8, 9), "avg", layout="NCDHW"
      )
      verify_adaptive_pool(
          (1, 16, 64, 32, 32), (8, 16, 16), "avg", layout="NCDHW"
      )
      verify_adaptive_pool(
          (1, 16, 32, 32, 32), (1, 1, 1), "avg", layout="NDHWC"
      )
      verify_adaptive_pool(
          (1, 16, 32, 32, 32), (2, 2, 2), "max", layout="NDHWC"
      )
      verify_adaptive_pool(
          (1, 16, 32, 32, 32), (2, 4, 4), "max", layout="NDHWC"
      )
  
imports: import math
  import pytest
  import numpy
  import tvm
  import tvm.testing
  import tvm.topi.testing
  from tvm import te, topi, TVMError
  from tvm.topi.utils import get_const_tuple
label_desc: Use image node_id 6 for calling a global function with example usage: test_adaptive_pool() without return types