code: def __init__(self):
      super().__init__()
      self.train_model = TrainModel()
      self.model_server = MLServer(
          name="mnist-svm",
          implementation="mlserver_sklearn.SKLearnModel",
          workers=8,
      )
      self.performance_tester = Locust(num_users=100)
  
file_path: pytorch-lightning/docs/source-app/examples/model_server_app/app.py
imports: from locust_component import Locust
  from model_server import MLServer
  from train import TrainModel
  from lightning import LightningApp, LightningFlow
label_desc: Use image node_id 1 to create a new TrainAndServe object from inherited base classes: LightningFlow with example: obj = TrainAndServe()