class_docstr: Wrapper around the profilers of Pytorch to provide a uniform
  interface, independent of the chosen implementation
code: def __init__(self, profiler):
      self.profiler = profiler
      self.started = False
      self.dumped = False
  
imports: import functools
  import logging
  import os
  from contextlib import contextmanager
  from vissl.utils.layer_memory_tracking import null_context
label_desc: Use image node_id 1 to create a new Profiler object  with example: obj = Profiler(profiler)