code: def detect(self, img):
      img = img.permute(0, 3, 2, 1).float() / 255
      out = self.model(img)[0]
      return out["boxes"], out["labels"]
  
imports: import torchvision
  from flash.core.serve import Composition, ModelComponent, expose
  from flash.core.serve.types import BBox, Image, Label, Repeated
label_desc: Use image node_id 2 for calling the ObjectDetection obj's underlying member method code with example usage: obj.detect(img) and returns: out,  out