class_docstr: This component trains a Sklearn SVC model on digits dataset.
code: def __init__(self):
      super().__init__()
      # 1: Add element to the state.
      self.best_model_path = None
  
file_path: pytorch-lightning/docs/source-app/examples/model_server_app/train.py
imports: import joblib
  from sklearn import datasets, svm
  from sklearn.model_selection import train_test_split
  from lightning import LightningWork
  from lightning.app.storage.path import Path
label_desc: Use image node_id 1 to create a new TrainModel object from inherited base classes: LightningWork with example: obj = TrainModel()