code: def setup(self):
      self._model = torchvision.models.resnet18(pretrained=True)
      self._device = torch.device(
          "cuda:0" if torch.cuda.is_available() else "cpu"
      )
      self._model.to(self._device)
  
file_path: pytorch-lightning/docs/source-app/levels/basic/hello_components/deploy_model.py
imports: from lightning.app import LightningApp, CloudCompute
  from lightning.app.components.serve import PythonServer, Image, Number
  import base64, io, torchvision, torch
  from PIL import Image
label_desc: Use image node_id 1 for calling the PyTorchServer obj's underlying member method code with example usage: obj.setup() without return types