code: def calculate_bbox_area(bbox: BoxType, rows: int, cols: int) -> float:
      """Calculate the area of a bounding box in (fractional) pixels.
  
      Args:
          bbox: A bounding box `(x_min, y_min, x_max, y_max)`.
          rows: Image height.
          cols: Image width.
  
      Return:
          Area in (fractional) pixels of the (denormalized) bounding box.
  
      """
      bbox = denormalize_bbox(bbox, rows, cols)
      x_min, y_min, x_max, y_max = bbox[:4]
      area = (x_max - x_min) * (y_max - y_min)
      return area
  
imports: from __future__ import division
  from typing import Any, Dict, List, Optional, Sequence, Tuple, TypeVar, cast
  import numpy
  from .transforms_interface import BoxInternalType, BoxType
  from .utils import DataProcessor, Params
label_desc: Use image node_id 5 for calling a global function with example usage: calculate_bbox_area(bbox, rows, cols) and returns: area