code: def __init__(self, save_dir: str):
      super().__init__(save_dir)
      self._options = tf.profiler.experimental.ProfilerOptions(
          host_tracer_level=3,
          python_tracer_level=1,
          device_tracer_level=1,
      )
  
imports: import tensorflow
  from typing import Union, Optional
  import ivy
  from ivy.functional.ivy.device import Profiler
label_desc: Use image node_id 1 to create a new Profiler object from inherited base classes: BaseProfiler with example: obj = Profiler(save_dir)