class_docstr: Benchmark writer class.
  
  It writes benchmark statistics taken by :class:`FunctionBenchmark`
  in .ini file format. As it's not so readable,
  use :class:`FunctionBenchmarkCsvWriter` instead.
  
  Args:
      file (Python file object): The benchmark will be written to the file.
class_docstr_tok: ["Benchmark","writer","class",".","It","writes","benchmark","statistics","taken","by",":","class",":","`","FunctionBenchmark","`","in",".ini","file","format",".","As","it","'s","not","so","readable",",","use",":","class",":","`","FunctionBenchmarkCsvWriter","`","instead",".","Args",":","file","(","Python","file","object",")",":","The","benchmark","will","be","written","to","the","file","."]
docstr: Write a single function benchmark.
  
  Args:
      fb (FunctionBenchmark): FunctionBenchmark class instance.
          Before passing to this, you should call ``fb.benchmark()``.
docstr_tok: ["Write","a","single","function","benchmark",".","Args",":","fb","(","FunctionBenchmark",")",":","FunctionBenchmark","class","instance",".","Before","passing","to","this",",","you","should","call","``","fb.benchmark","(",")","``","."]
code: def write(self, fb):
      """Write a single function benchmark.
  
      Args:
          fb (FunctionBenchmark): FunctionBenchmark class instance.
              Before passing to this, you should call ``fb.benchmark()``.
  
      """
      print(
          "[{}.{}]".format(fb.module, fb.func.__name__), file=self.file
      )
      print("class = {}".format(fb.func_ins.name), file=self.file)
      print("inspecs = {}".format(repr(fb.inspecs)), file=self.file)
      print("func_args = {}".format(repr(fb.func_args)), file=self.file)
      print(
          "func_kwargs = {}".format(repr(fb.func_kwargs)),
          file=self.file,
      )
      print(
          "ext = ({}, {})".format(repr(fb.ext), repr(fb.ext_kwargs)),
          file=self.file,
      )
      if self.setup_stat is not None:
          self._write_a_stat("setup", self.setup_stat)
      if self.foward_stat is not None:
          self._write_a_stat("forward", self.forward_stat)
      if self.backward_stat is not None:
          self._write_a_stat("backward", self.backward_stat)
  
imports: from __future__ import print_function
  import nnabla
  import nnabla.initializer
  import sys
  import importlib
  import time
  from collections import namedtuple
  import csv
label_desc: Use image node_id 4 for calling the FunctionBenchmarkWriter obj's underlying member method code with example usage: obj.write(fb) without return types