class_docstr: Function profiler object.
  
  This is usually not directly used by users. It's created via
  :func:`profile`, and attached to a decorated
  function object as an attribute ``profiler``. See ``profile`` function for
  details.
code: def _atexit(self):
      try:
          self.print_stats()
      except ValueError:
          # To avoid error in pytest `capture.py`.
          print("Ignore atexit error during pytest.")
          print("--------------------------")
  
file_path: nnabla/python/src/nnabla/utils/function_profile.py
imports: import atexit
  import cProfile
  import pstats
label_desc: Use image node_id 5 for calling the FunctionProfile obj's underlying member method code with example usage: obj._atexit() without return types