code: def _check_load_coco_bbox(
      coco, entry, min_object_area=0, use_crowd=False
  ):
      """Check and load ground-truth labels"""
      entry_id = entry["id"]
      # fix pycocotools _isArrayLike which don't work for str in python3
      entry_id = (
          [entry_id]
          if not isinstance(entry_id, (list, tuple))
          else entry_id
      )
      ann_ids = coco.getAnnIds(imgIds=entry_id, iscrowd=None)
      objs = coco.loadAnns(ann_ids)
      # check valid bboxes
      valid_objs = []
      width = entry["width"]
      height = entry["height"]
      for obj in objs:
          if obj["area"] < min_object_area:
              continue
          if obj.get("ignore", 0) == 1:
              continue
          is_crowd = obj.get("iscrowd", 0)
          if not use_crowd and is_crowd:
              continue
          # convert from (x, y, w, h) to (xmin, ymin, xmax, ymax) and clip bound
          xmin, ymin, xmax, ymax = bbox_clip_xyxy(
              bbox_xywh_to_xyxy(obj["bbox"]), width, height
          )
          # require non-zero box area
          if obj["area"] > 0 and xmax > xmin and ymax > ymin:
              cname = coco.loadCats(obj["category_id"])[0]["name"]
              valid_objs.append(
                  {
                      "xmin": xmin / width,
                      "ymin": ymin / height,
                      "xmax": xmax / width,
                      "ymax": ymax / height,
                      "class": cname,
                      "is_crowd": is_crowd,
                  }
              )
      return valid_objs
  
imports: import logging
  import os
  from pathlib import Path
  import warnings
  import numpy
  import pandas
  import matplotlib.pyplot
  from PIL import Image
  import cv2
  from ..data import is_url, url_data
  from ...utils.filesystem import import_try_install
  from ...utils.bbox import bbox_xywh_to_xyxy, bbox_clip_xyxy
label_desc: Use image node_id 5 for calling a global function with example usage: _check_load_coco_bbox(coco, entry, min_object_area, use_crowd) and returns: valid_objs