code: def _get_expected_global_pooling_codegen(shape, dtype, typef):
      node = {
          "op": "kernel",
          "name": typef,
          "inputs": [[0, 0, 0]],
          "attrs": {
              "num_inputs": "1",
              "num_outputs": "1",
              "layout": [["NCHW"]],
              "shape": [[[1, shape[1], 1, 1]]],
              "dtype": [[dtype]],
          },
      }
  
      input = {
          "op": "input",
          "name": "",
          "attrs": {"shape": [[list(shape)]], "dtype": [[dtype]]},
      }
      return [input, node]
  
file_path: tvm/tests/python/contrib/test_bnns/test_pooling.py
imports: import numpy
  import pytest
  import tvm
  from tvm import relay
  from tvm import testing
  from .infrastructure import skip_runtime_test, skip_codegen_test, build_and_run, verify, verify_codegen
  from .infrastructure import Device
label_desc: Use image node_id 5 for calling a global function with example usage: _get_expected_global_pooling_codegen(shape, dtype, typef) and returns: list