code: def _convert_bbox_to_fo_bbox(
      bbox: Union[BBox, List, Tuple],
      original_width: int,
      original_height: int,
  ) -> List[float]:
      if not isinstance(bbox, BBox):
          bbox = BBox(*bbox)
  
      return [
          bbox.xmin / original_width,
          bbox.ymin / original_height,
          bbox.width / original_width,
          bbox.height / original_height,
      ]
  
file_path: icevision/icevision/data/convert_records_to_fo.py
imports: from PIL import Image
  from warnings import warn
  from pathlib import Path
  from icevision import tfms
  from icevision.core.bbox import BBox
  from icevision.data.prediction import Prediction
  from icevision.models.inference import postprocess_bbox
  from icevision.soft_dependencies import SoftDependencies
  from icevision.utils.imageio import get_img_size
  from typing import Any, Callable, Union, Iterable, List, Tuple
label_desc: Use image node_id 5 for calling a global function with example usage: _convert_bbox_to_fo_bbox(bbox, original_width, original_height) and returns: list