class_docstr: Class that defines the methods necessary to hook into process.
code: def on_train_start(self, *args, **kwargs):
      self.train_profiler = LudwigProfiler(
          tag=TRAINING,
          output_dir=self.experiment_name,
          use_torch_profiler=self.use_torch_profiler,
          logging_interval=self.logging_interval,
      )
      self.train_profiler.__enter__()
  
file_path: ludwig/ludwig/benchmarking/profiler_callbacks.py
imports: from typing import Any, Dict
  from ludwig.api_annotations import DeveloperAPI
  from ludwig.benchmarking.profiler import LudwigProfiler
  from ludwig.callbacks import Callback
  from ludwig.constants import EVALUATION, PREPROCESSING, TRAINING
label_desc: Use image node_id 4 for calling the LudwigProfilerCallback obj's underlying member method code with example usage: obj.on_train_start() without return types