docstr: This method is called before the server starts. Override this if you need to download the model or
  initialize the weights, setting up pipelines etc.
  
  Note that this will be called exactly once on every work machines. So if you have multiple machines for serving,
  this will be called on each of them.
docstr_tok: ["This","method","is","called","before","the","server","starts",".","Override","this","if","you","need","to","download","the","model","or","initialize","the","weights",",","setting","up","pipelines","etc",".","Note","that","this","will","be","called","exactly","once","on","every","work","machines",".","So","if","you","have","multiple","machines","for","serving",",","this","will","be","called","on","each","of","them","."]
code: def setup(self, *args: Any, **kwargs: Any) -> None:
      """This method is called before the server starts. Override this if you need to download the model or
      initialize the weights, setting up pipelines etc.
  
      Note that this will be called exactly once on every work machines. So if you have multiple machines for serving,
      this will be called on each of them.
  
      """
      return
  
imports: import abc
  import asyncio
  import base64
  import os
  import platform
  from typing import TYPE_CHECKING, Any, Dict, Optional
  import requests
  import uvicorn
  from fastapi import FastAPI
  from lightning_utilities.core.imports import compare_version, module_available
  from pydantic import BaseModel
  from lightning.app.core.work import LightningWork
  from lightning.app.utilities.app_helpers import Logger
  from lightning.app.utilities.imports import _is_torch_available, requires
label_desc: Use image node_id 2 for calling the PythonServer obj's underlying member method code with example usage: obj.setup() without return types