code: def NotebookProgressCallback_on_train_begin(
      self, args, state, control, **kwargs
  ):
      self.first_column = (
          "Epoch"
          if args.evaluation_strategy == IntervalStrategy.EPOCH
          else "Step"
      )
      self.training_loss = 0
      self.last_log = 0
      column_names = [self.first_column] + ["Training Loss"]
      if args.evaluation_strategy != IntervalStrategy.NO:
          column_names.append("Validation Loss")
      column_names += [
          x.replace("/", " / ") for x in DPOTrainer_metrics
      ]
      self.training_tracker = NotebookTrainingTracker(
          state.max_steps, column_names
      )
  
imports: from transformers.utils.notebook import IntervalStrategy, NotebookTrainingTracker, NotebookProgressCallback
label_desc: Use image node_id 1 for calling a global function with example usage: NotebookProgressCallback_on_train_begin(args, state, control) without return types