code: def from_task(
      cls,
      task: Task,
      num_classes: int,
      backbone: str = "resnet18_fpn",
      head: str = "retinanet",
      pretrained: bool = True,
      metrics: Optional["IceVisionMetric"] = SimpleCOCOMetric(
          COCOMetricType.bbox
      ),
      image_size: Optional = None,
      **kwargs,
  ) -> Adapter:
      return super().from_task(
          task,
          num_classes=num_classes,
          backbone=backbone,
          head=head,
          pretrained=pretrained,
          metrics=metrics,
          image_size=image_size,
          **kwargs,
      )
  
file_path: lightning-flash/src/flash/image/detection/backbones.py
imports: from functools import partial
  from typing import Optional
  from lightning_utilities.core.imports import module_available
  from flash.core.adapter import Adapter
  from flash.core.integrations.icevision.adapter import IceVisionAdapter, SimpleCOCOMetric
  from flash.core.integrations.icevision.backbones import get_backbones, load_icevision_ignore_image_size, load_icevision_with_image_size
  from flash.core.model import Task
  from flash.core.registry import FlashRegistry
  from flash.core.utilities.imports import _ICEVISION_AVAILABLE, _TORCHVISION_AVAILABLE
  from flash.core.utilities.providers import _EFFDET, _ICEVISION, _MMDET, _TORCHVISION, _ULTRALYTICS
label_desc: Use image node_id 1 for calling the IceVisionObjectDetectionAdapter obj's underlying member method code with example usage: obj.from_task(cls, task, num_classes, backbone, head, pretrained, metrics, image_size) and returns: super