docstr: This method is called when a request is made to the server.
  
  This method must be overriden by the user with the prediction logic. The pre/post processing, actual prediction
  using the model(s) etc goes here
docstr_tok: ["This","method","is","called","when","a","request","is","made","to","the","server",".","This","method","must","be","overriden","by","the","user","with","the","prediction","logic",".","The","pre\/post","processing",",","actual","prediction","using","the","model","(","s",")","etc","goes","here"]
code: def predict(self, request: Any) -> Any:
      """This method is called when a request is made to the server.
  
      This method must be overriden by the user with the prediction logic. The pre/post processing, actual prediction
      using the model(s) etc goes here
  
      """
      pass
  
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 5 for calling the PythonServer obj's underlying member method code with example usage: obj.predict(request) without return types