code: def test_affine(inspecs, n_outmaps, nnabla_opts):
      fb = FunctionBenchmark(
          PF.affine,
          inspecs,
          [],
          dict(n_outmaps=n_outmaps),
          nnabla_opts.ext,
          nnabla_opts.ext_kwargs,
      )
      fb.benchmark()
      fb.write(writer=nnabla_opts.function_benchmark_writer)
  
imports: import pytest
  import nnabla.functions
  import nnabla.parametric_functions
  from function_benchmark import FunctionBenchmark, Inspec
label_desc: Use image node_id 2 for calling a global function with example usage: test_affine(inspecs, n_outmaps, nnabla_opts) without return types