code: def _boxes_area(boxes: np.ndarray) -> np.ndarray:
      """
      Calculate the area of bounding boxes.
      """
      return (boxes[2] - boxes[0]) * (boxes[3] - boxes[1])
  
imports: from abc import ABC, abstractmethod
  from functools import partial
  from logging import warning
  from typing import TYPE_CHECKING, Callable, List, Optional, Sequence, Union
  import numpy
  from scipy.spatial.distance import cdist
label_desc: Use image node_id 4 for calling a global function with example usage: _boxes_area(boxes) and returns: unknown