code: def convert_record_to_coco_image(record) -> dict:
      image = {}
      image["id"] = record.record_id
      image["file_name"] = Path(record.filepath).name
      image["width"] = record.width
      image["height"] = record.height
      return image
  
file_path: icevision/icevision/data/convert_records_to_coco_style.py
imports: from icevision.imports import *
  from icevision.utils import *
  from icevision.core import *
  from pycocotools.coco import COCO
  from pycocotools.cocoeval import COCOeval
  import json
  import numpy
  import PIL
label_desc: Use image node_id 6 for calling a global function with example usage: convert_record_to_coco_image(record) and returns: image