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/examples/app/server/app.py
imports: import base64
  import io
  import torch
  import torchvision
  from lightning.app import CloudCompute, LightningApp
  from lightning.app.components.serve import Image
  from lightning.app.components.serve import PythonServer
  from PIL import Image
  from pydantic import BaseModel
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