code: def from_icevision_predictions(predictions: List["Prediction"]):
      result = []
      for prediction in predictions:
          result.append(from_icevision_detection(prediction.pred))
      return result
  
imports: from dataclasses import dataclass
  from typing import Any, Callable, Dict, List, Optional, Tuple
  import numpy
  from torch import Tensor, nn
  from flash.core.data.io.input import DataKeys
  from flash.core.data.io.input_transform import InputTransform
  from flash.core.utilities.imports import _ICEVISION_AVAILABLE, _ICEVISION_GREATER_EQUAL_0_11_0, _TOPIC_IMAGE_AVAILABLE, requires
label_desc: Use image node_id 5 for calling a global function with example usage: from_icevision_predictions(predictions) and returns: result