code: def bboxes_area(bboxes: Tensor) -> Tensor:
      """Compute the area of an array of bboxes.
  
      Args:
          bboxes (Tensor): The coordinates ox bboxes. Shape: (m, 4)
  
      Returns:
          Tensor: Area of the bboxes. Shape: (m, )
      """
      assert bboxes.size(1) == 4
      w = bboxes[:, 2] - bboxes[:, 0]
      h = bboxes[:, 3] - bboxes[:, 1]
      areas = w * h
      return areas
  
file_path: mmdetection/mmdet/models/task_modules/assigners/center_region_assigner.py
imports: from typing import Optional, Tuple
  import torch
  from mmengine.structures import InstanceData
  from torch import Tensor
  from mmdet.registry import TASK_UTILS
  from mmdet.utils import ConfigType
  from .assign_result import AssignResult
  from .base_assigner import BaseAssigner
label_desc: Use image node_id 3 for calling a global function with example usage: bboxes_area(bboxes) and returns: areas