code: def __init__(self, tmp_path=None):
      self.tmp_dir = tempfile.TemporaryDirectory(dir=tmp_path)
      self.nsys_file = os.path.join(
          self.tmp_dir.name, "report.nsys-rep"
      )
      self.json_file = os.path.join(self.tmp_dir.name, "report.json")
      shutil.rmtree(self.tmp_dir.name)
      os.makedirs(self.tmp_dir.name, exist_ok=True)
  
file_path: cuml/python/cuml/benchmark/nvtx_benchmark.py
imports: import os
  import shutil
  import sys
  import tempfile
  from subprocess import run
  import json
label_desc: Use image node_id 1 to create a new Profiler object  with example: obj = Profiler(tmp_path)