code: def test_categorical_classification_loss(inspecs, loss, nnabla_opts):
      func = getattr(F, loss)
      fb = FunctionBenchmark(
          func,
          inspecs,
          [],
          dict(axis=1),
          nnabla_opts.ext,
          nnabla_opts.ext_kwargs,
      )
      fb.benchmark()
      fb.write(writer=nnabla_opts.function_benchmark_writer)
  
file_path: nnabla/python/benchmark/function/test_loss.py
imports: import pytest
  import nnabla.initializer
  import nnabla.functions
  from function_benchmark import FunctionBenchmark, Inspec
label_desc: Use image node_id 2 for calling a global function with example usage: test_categorical_classification_loss(inspecs, loss, nnabla_opts) without return types