code: def __init__(self):
      super().__init__()
      self._enable_profile = int(os.environ.get("ENABLE_PROFILE", 0))
      self._start_step = int(os.environ.get("PROFILE_START_STEP", 0))
      self._stop_step = int(os.environ.get("PROFILE_STOP_STEP", 0))
  
      if self._enable_profile:
          log_msg = f"Profiling start at {self._start_step}-th and stop at {self._stop_step}-th iteration"
          logging.info(log_msg)
  
file_path: DALI/docs/examples/use_cases/paddle/resnet50/profile.py
imports: import os
  import logging
  from contextlib import contextmanager
  from utils.cuda_bind import cuda_profile_start, cuda_profile_stop
  from utils.cuda_bind import cuda_nvtx_range_push, cuda_nvtx_range_pop
label_desc: Use image node_id 1 to create a new Profiler object  with example: obj = Profiler()