code: def __init__(self):
      self.model = torch.hub.load("ultralytics/yolov5", "yolov5s")
      self.model.cuda()
      self.model.to(torch.device(0))
  
file_path: ray/doc/source/serve/doc_code/object_detection.py
imports: import torch
  from PIL import Image
  import numpy
  from io import BytesIO
  from fastapi.responses import Response
  from fastapi import FastAPI
  from ray import serve
  from ray.serve.handle import DeploymentHandle
label_desc: Use image node_id 1 to create a new ObjectDetection object  with example: obj = ObjectDetection()