text: import numpy as np
  
  from test.runtime.frontend_test.keras_test.util import keras, KerasConverter
  from test.util import generate_kernel_test_case, wrap_template
  
  
  @wrap_template
  def template(description: str = ""):
      x = keras.layers.Input((14, 15, 16))
      y = keras.layers.GlobalAveragePooling2D()(x)
      model = keras.models.Model([x], [y])
  
      vx = np.random.rand(2, 14, 15, 16)
      vy = model.predict(vx, batch_size=2)
  
      graph = KerasConverter(batch_size=2, use_tensorflow_converter=False).convert(model)
  
      generate_kernel_test_case(
          description=f"[keras] GlobalAveragePooling2D {description}",
          graph=graph,
          backend=["webgpu", "webassembly", "webgl"],
          inputs={graph.inputs[0]: vx},
          expected={graph.outputs[0]: vy},
      )
  
  
  def test():
      template()
  