code: def __init__(
      self,
      script_path: str,
      data_dir: str,
      cloud_compute: Optional[CloudCompute],
  ):
      timestamp = datetime.now().strftime("%H:%M:%S")
      tmpdir = tempfile.TemporaryDirectory().name
      submission_path = os.path.join(tmpdir, f"{timestamp}.csv")
      best_model_path = os.path.join(tmpdir, f"{timestamp}.model.pt")
      super().__init__(
          script_path,
          script_args=[
              f"--train_data_path={data_dir}/train",
              f"--test_data_path={data_dir}/test",
              f"--submission_path={submission_path}",
              f"--best_model_path={best_model_path}",
          ],
          cloud_compute=cloud_compute,
      )
      self.data_dir = data_dir
      self.best_model_path = best_model_path
      self.submission_path = submission_path
      self.metric = None
      self.trial_id = None
      self.metric = None
      self.params = None
      self.has_told_study = False
  
file_path: pytorch-lightning/examples/app/hpo/objective.py
imports: import os
  import tempfile
  from datetime import datetime
  from typing import Optional
  import pandas
  import torch
  from lightning.app import CloudCompute
  from lightning.app.components import TracerPythonScript
  from optuna.distributions import CategoricalDistribution, LogUniformDistribution
  from torchmetrics import Accuracy
label_desc: Use image node_id 1 to create a new ObjectiveWork object from inherited base classes: TracerPythonScript with example: obj = ObjectiveWork(script_path, data_dir, cloud_compute)