code: def test_global_average_pooling_forward_backward(
      seed, fname, ctx, func_name
  ):
      rng = np.random.RandomState(seed)
      ref_func = eval("ref_" + fname)
      func = getattr(F, fname)
      inputs = [rng.random_sample((2, 3, 4, 5))]
      function_tester(
          rng, func, ref_func, inputs, [], ctx=ctx, func_name=func_name
      )
  
imports: import pytest
  import numpy
  import nnabla.functions
  from nbla_test_utils import function_tester, list_ctx_and_func_name
label_desc: Use image node_id 2 for calling a global function with example usage: test_global_average_pooling_forward_backward(seed, fname, ctx, func_name) without return types